@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
|
@@ -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
|
|
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
|
|
169
|
+
return Log.channelOrVanilla(channel).info(ctx);
|
|
169
170
|
}
|
|
170
171
|
if (isToLogRequest(ctx)) {
|
|
171
|
-
return Log.channelOrVanilla(channel
|
|
172
|
+
return Log.channelOrVanilla(channel).info(ctx);
|
|
172
173
|
}
|
|
173
174
|
});
|
|
174
175
|
}
|