Skip to content

Commit 72eb802

Browse files
authored
Merge pull request #219 from AthennaIO/develop
chore(npm): update dependencies
2 parents 484b5f6 + 6d22d09 commit 72eb802

3 files changed

Lines changed: 86 additions & 35 deletions

File tree

package-lock.json

Lines changed: 81 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/http",
3-
"version": "5.33.0",
3+
"version": "5.34.0",
44
"description": "The Athenna Http server. Built on top of fastify.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/kernels/HttpKernel.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,16 @@ export class HttpKernel {
261261
return
262262
}
263263

264-
const { channel, isToLogRequest } = Config.get('http.logger')
264+
const channel = Config.get('http.logger.channel', 'request')
265+
const isToLogRequest = Config.get('http.logger.isToLogRequest')
265266

266267
Server.terminate(ctx => {
267268
if (!isToLogRequest) {
268-
return Log.channelOrVanilla(channel || 'request').info(ctx)
269+
return Log.channelOrVanilla(channel).info(ctx)
269270
}
270271

271272
if (isToLogRequest(ctx)) {
272-
return Log.channelOrVanilla(channel || 'request').info(ctx)
273+
return Log.channelOrVanilla(channel).info(ctx)
273274
}
274275
})
275276
}

0 commit comments

Comments
 (0)