mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Reduce conversion logging level.
This commit is contained in:
parent
c7dd6dba78
commit
b7be70f8c3
@ -88,7 +88,7 @@ export class ChainedConverter extends TypedRepresentationConverter {
|
|||||||
if (weight > bestMatch.weight && matchesMediaType(leftType, rightType)) {
|
if (weight > bestMatch.weight && matchesMediaType(leftType, rightType)) {
|
||||||
bestMatch = { type: leftType, weight };
|
bestMatch = { type: leftType, weight };
|
||||||
if (weight === 1) {
|
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;
|
return bestMatch.type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,11 +96,11 @@ export class ChainedConverter extends TypedRepresentationConverter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bestMatch.weight === 0) {
|
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}`);
|
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;
|
return bestMatch.type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user