From 16b28999461081f91e390a5961a13b17e71e3ae6 Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Wed, 25 Mar 2026 20:34:58 +0900 Subject: [PATCH] chore(services): add debug logging to getUidScore function Add console.debug logs at the beginning and end of the getUidScore function in uidScoreStore to track execution flow and performance. This aids in debugging when the function is called with large lists of uids. - Log start entry with uid count - Log end entry with uid count --- src/services/uidScoreStore.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/uidScoreStore.ts b/src/services/uidScoreStore.ts index e65ecf5..2626a66 100644 --- a/src/services/uidScoreStore.ts +++ b/src/services/uidScoreStore.ts @@ -2,9 +2,11 @@ import { xcxApi } from '../utils/server'; export const getUidScore = async (uids: string[], force?: boolean): Promise> => { const entries: [string, string][] = []; + console.debug('getUidScore(%s): start', uids.length); for (const uid of uids) { const profile = await xcxApi.getAdvProfile(uid, force); entries.push([uid, profile?.score ?? '']); } + console.debug('getUidScore(%s): end', uids.length); return Object.fromEntries(entries); } \ No newline at end of file