diff --git a/src/logging.ts b/src/logging.ts index 925fa7a..2fdd77c 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -29,11 +29,9 @@ export function logger(winstonInstance) { let logLevel: string; if (ctx.status >= 500) { logLevel = 'error'; - } - if (ctx.status >= 400) { + } else if (ctx.status >= 400) { logLevel = 'warn'; - } - if (ctx.status >= 100) { + } else if (ctx.status >= 100) { logLevel = 'info'; }