Skip to content

Commit 6d22d09

Browse files
committed
chore(npm): update dependencies
1 parent e459d2f commit 6d22d09

File tree

3 files changed

+86
-35
lines changed

3 files changed

+86
-35
lines changed

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 <[email protected]>",

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)