mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
refactor(scoring): remove debug logging from scoring query
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user