@athenna/http 5.33.0 → 5.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "5.33.0",
3
+ "version": "5.34.0",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -162,13 +162,14 @@ export class HttpKernel {
162
162
  debug('Not able to register http request logger. Enable it in your http.logger.enabled configuration.');
163
163
  return;
164
164
  }
165
- const { channel, isToLogRequest } = Config.get('http.logger');
165
+ const channel = Config.get('http.logger.channel', 'request');
166
+ const isToLogRequest = Config.get('http.logger.isToLogRequest');
166
167
  Server.terminate(ctx => {
167
168
  if (!isToLogRequest) {
168
- return Log.channelOrVanilla(channel || 'request').info(ctx);
169
+ return Log.channelOrVanilla(channel).info(ctx);
169
170
  }
170
171
  if (isToLogRequest(ctx)) {
171
- return Log.channelOrVanilla(channel || 'request').info(ctx);
172
+ return Log.channelOrVanilla(channel).info(ctx);
172
173
  }
173
174
  });
174
175
  }