From b7be70f8c354e61aa6793c58c6d04312d892e1b2 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Sun, 3 Jan 2021 01:14:52 +0100 Subject: [PATCH] chore: Reduce conversion logging level. --- src/storage/conversion/ChainedConverter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/conversion/ChainedConverter.ts b/src/storage/conversion/ChainedConverter.ts index 5dea6890c..d3faf0b3a 100644 --- a/src/storage/conversion/ChainedConverter.ts +++ b/src/storage/conversion/ChainedConverter.ts @@ -88,7 +88,7 @@ export class ChainedConverter extends TypedRepresentationConverter { if (weight > bestMatch.weight && matchesMediaType(leftType, rightType)) { bestMatch = { type: leftType, weight }; if (weight === 1) { - this.logger.info(`${bestMatch.type} is an exact match between ${leftKeys} and ${rightKeys}`); + this.logger.debug(`${bestMatch.type} is an exact match between ${leftKeys} and ${rightKeys}`); return bestMatch.type; } } @@ -96,11 +96,11 @@ export class ChainedConverter extends TypedRepresentationConverter { } if (bestMatch.weight === 0) { - this.logger.error(`No match found between ${leftKeys} and ${rightKeys}`); + this.logger.warn(`No match found between ${leftKeys} and ${rightKeys}`); throw new Error(`No match found between ${leftKeys} and ${rightKeys}`); } - this.logger.info(`${bestMatch.type} is the best match between ${leftKeys} and ${rightKeys}`); + this.logger.debug(`${bestMatch.type} is the best match between ${leftKeys} and ${rightKeys}`); return bestMatch.type; } }