aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-24 15:58:10 -0500
committermat <github@matdoes.dev>2021-06-24 15:58:10 -0500
commit84291991d685dbc83942f226406cf7c09a700189 (patch)
treef14402ada59a6482f5a22cd340f0ca53d218104d
parenteb918b59e8a0cc65f1142fab4b80b3d76df9c457 (diff)
downloadskyblock-api-84291991d685dbc83942f226406cf7c09a700189.tar.gz
skyblock-api-84291991d685dbc83942f226406cf7c09a700189.tar.bz2
skyblock-api-84291991d685dbc83942f226406cf7c09a700189.zip
log key
-rw-r--r--build/hypixelApi.js2
-rw-r--r--src/hypixelApi.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js
index 8ab2c46..5009506 100644
--- a/build/hypixelApi.js
+++ b/build/hypixelApi.js
@@ -70,7 +70,7 @@ async function sendApiRequest({ path, key, args }) {
try {
fetchResponse = await node_fetch_1.default(fetchUrl, { agent: () => httpsAgent });
fetchJsonParsed = await fetchResponse.json();
- console.log('gotten api response', fetchJsonParsed);
+ console.log('gotten api response', fetchJsonParsed, key);
}
catch {
// if there's an error, wait a second and try again
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts
index 25ab68b..0987ab5 100644
--- a/src/hypixelApi.ts
+++ b/src/hypixelApi.ts
@@ -158,7 +158,7 @@ export async function sendApiRequest({ path, key, args }): Promise<HypixelRespon
{ agent: () => httpsAgent }
)
fetchJsonParsed = await fetchResponse.json()
- console.log('gotten api response', fetchJsonParsed)
+ console.log('gotten api response', fetchJsonParsed, key)
} catch {
// if there's an error, wait a second and try again
await new Promise((resolve) => setTimeout(resolve, 1000))