Skip to content

Commit

Permalink
Merge pull request javieraviles#35 from atamano/patch-1
Browse files Browse the repository at this point in the history
fix: logging logLevel
  • Loading branch information
javieraviles authored May 20, 2019
2 parents 7bfc27e + fbb0833 commit 8cbb97f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 8cbb97f

Please sign in to comment.