change: Reduce mapper logging level.

This commit is contained in:
Ruben Verborgh 2021-01-13 22:37:13 +01:00
parent b51dac310e
commit dd272bac88
2 changed files with 7 additions and 7 deletions

View File

@ -103,7 +103,7 @@ export class ExtensionBasedMapper implements FileIdentifierMapper {
filePath = joinFilePath(folder, fileName);
}
this.logger.info(`The path for ${identifier.path} is ${filePath}`);
this.logger.debug(`The path for ${identifier.path} is ${filePath}`);
return {
identifier,
filePath,
@ -122,7 +122,7 @@ export class ExtensionBasedMapper implements FileIdentifierMapper {
filePath += `$.${extension}`;
}
this.logger.info(`The path for ${identifier.path} is ${filePath}`);
this.logger.debug(`The path for ${identifier.path} is ${filePath}`);
return {
identifier,
filePath,
@ -146,7 +146,7 @@ export class ExtensionBasedMapper implements FileIdentifierMapper {
let relative = filePath.slice(this.rootFilepath.length);
if (isContainer) {
const path = ensureTrailingSlash(this.baseRequestURI + encodeUriPathComponents(relative));
this.logger.info(`Container filepath ${filePath} maps to URL ${path}`);
this.logger.debug(`Container filepath ${filePath} maps to URL ${path}`);
return {
identifier: { path },
filePath,
@ -161,7 +161,7 @@ export class ExtensionBasedMapper implements FileIdentifierMapper {
}
const path = trimTrailingSlashes(this.baseRequestURI + encodeUriPathComponents(relative));
this.logger.info(`File ${filePath} (${contentType}) maps to URL ${path}`);
this.logger.debug(`File ${filePath} (${contentType}) maps to URL ${path}`);
return {
identifier: { path },

View File

@ -47,7 +47,7 @@ export class FixedContentTypeMapper implements FileIdentifierMapper {
throw new NotImplementedHttpError(`Unsupported content type ${contentType}, only ${this.contentType} is allowed`);
}
this.logger.info(`The path for ${identifier.path} is ${filePath}`);
this.logger.debug(`The path for ${identifier.path} is ${filePath}`);
return {
identifier,
filePath,
@ -64,7 +64,7 @@ export class FixedContentTypeMapper implements FileIdentifierMapper {
const relative = filePath.slice(this.rootFilepath.length);
if (isContainer) {
const path = ensureTrailingSlash(this.baseRequestURI + encodeUriPathComponents(relative));
this.logger.info(`Container filepath ${filePath} maps to URL ${path}`);
this.logger.debug(`Container filepath ${filePath} maps to URL ${path}`);
return {
identifier: { path },
filePath,
@ -72,7 +72,7 @@ export class FixedContentTypeMapper implements FileIdentifierMapper {
}
const path = trimTrailingSlashes(this.baseRequestURI + encodeUriPathComponents(relative));
this.logger.info(`File ${filePath} maps to URL ${path}`);
this.logger.debug(`File ${filePath} maps to URL ${path}`);
return {
identifier: { path },