refactor(scoring): remove debug logging from scoring query

This commit is contained in:
Sam Chau
2026-01-02 20:29:06 +10:30
parent 59b032aab0
commit bca25af6dc

View File

@@ -4,14 +4,12 @@
import type { PCDCache } from '../../cache.ts';
import type { QualityProfileScoring } from '../../types.ts';
import { logger } from '$logger/logger.ts';
/**
* Get quality profile scoring data
* Returns all custom formats with their scores per arr type
*/
export async function scoring(cache: PCDCache, databaseId: number, profileId: number): Promise<QualityProfileScoring> {
await logger.debug('scoring query called', { source: 'scoring', meta: { databaseId, profileId } });
const db = cache.kb;
// 1. Get profile settings
@@ -99,7 +97,5 @@ export async function scoring(cache: PCDCache, databaseId: number, profileId: nu
upgrade_score_increment: profile.upgrade_score_increment
};
await logger.debug('scoring query completed', { source: 'scoring', meta: { customFormatCount: customFormatScoring.length } });
return result;
}