From dd272bac88125129de9cbce0da41089d5ef5f370 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Wed, 13 Jan 2021 22:37:13 +0100 Subject: [PATCH] change: Reduce mapper logging level. --- src/storage/mapping/ExtensionBasedMapper.ts | 8 ++++---- src/storage/mapping/FixedContentTypeMapper.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/storage/mapping/ExtensionBasedMapper.ts b/src/storage/mapping/ExtensionBasedMapper.ts index 948587666..611bbfd7b 100644 --- a/src/storage/mapping/ExtensionBasedMapper.ts +++ b/src/storage/mapping/ExtensionBasedMapper.ts @@ -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 }, diff --git a/src/storage/mapping/FixedContentTypeMapper.ts b/src/storage/mapping/FixedContentTypeMapper.ts index 855c9cdd0..c1e04b293 100644 --- a/src/storage/mapping/FixedContentTypeMapper.ts +++ b/src/storage/mapping/FixedContentTypeMapper.ts @@ -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 },