From 839b43b1cfc0735e002211326246c058e5ec759b Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 15 Feb 2021 13:01:49 -0600 Subject: remove debug logs --- src/cleaners/skyblock/profiles.ts | 1 - src/hypixel.ts | 1 - src/hypixelApi.ts | 2 -- src/hypixelCached.ts | 5 ----- src/mojang.ts | 1 - 5 files changed, 10 deletions(-) (limited to 'src') diff --git a/src/cleaners/skyblock/profiles.ts b/src/cleaners/skyblock/profiles.ts index 0138c0b..ea290f6 100644 --- a/src/cleaners/skyblock/profiles.ts +++ b/src/cleaners/skyblock/profiles.ts @@ -9,7 +9,6 @@ export function cleanPlayerSkyblockProfiles(rawProfiles: HypixelPlayerStatsSkyBl name: profile.cute_name }) } - console.log('cleanPlayerSkyblockProfiles', profiles) return profiles } diff --git a/src/hypixel.ts b/src/hypixel.ts index f3e1491..e2d0e6b 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -30,7 +30,6 @@ export async function sendCleanApiRequest({ path, args }, included?: Included[], const rawResponse = await sendApiRequest({ path, key, args }) if (rawResponse.throttled) { // if it's throttled, wait a second and try again - console.log('throttled :/') await new Promise(resolve => setTimeout(resolve, 1000)) return await sendCleanApiRequest({ path, args }, included, options) } diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index 5b5e20f..5c4bb2b 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -127,7 +127,6 @@ export interface HypixelPlayer { /** Send an HTTP request to the Hypixel API */ export async function sendApiRequest({ path, key, args }): Promise { - console.log('sending api request to', path, args) // Send a raw http request to api.hypixel.net, and return the parsed json if (key) @@ -154,7 +153,6 @@ export async function sendApiRequest({ path, key, args }): Promise { const playerUuid = await uuidFromUser(user) if (playerCache.has(playerUuid)) { - console.log('cache hit! fetchPlayer', playerUuid) return playerCache.get(playerUuid) } @@ -111,7 +110,6 @@ export async function fetchPlayer(user: string): Promise { export async function fetchSkyblockProfiles(playerUuid: string): Promise { if (profilesCache.has(playerUuid)) { - console.log('cache hit! fetchSkyblockProfiles', playerUuid) return profilesCache.get(playerUuid) } @@ -157,7 +155,6 @@ export async function fetchSkyblockProfiles(playerUuid: string): Promise { const playerUuid = await uuidFromUser(user) if (basicProfilesCache.has(playerUuid)) { - console.log('cache hit! fetchBasicProfiles') return basicProfilesCache.get(playerUuid) } const player = await fetchPlayer(playerUuid) @@ -202,7 +199,6 @@ export async function fetchProfile(user: string, profile: string): Promise { - console.log('cache miss :( mojangDataFromUser', user) const fetchResponse = await fetch( 'https://api.ashcon.app/mojang/v2/user/' + user, { agent: () => httpsAgent } -- cgit