@athenna/http 5.30.0 → 5.31.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
|
@@ -170,7 +170,15 @@ export class HttpKernel {
|
|
|
170
170
|
debug('Not able to register http request logger. Enable it in your http.logger.enabled configuration.');
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
const { channel, isToLogRequest } = Config.get('http.logger');
|
|
174
|
+
Server.terminate(ctx => {
|
|
175
|
+
if (!isToLogRequest) {
|
|
176
|
+
return Log.channelOrVanilla(channel).info(ctx);
|
|
177
|
+
}
|
|
178
|
+
if (isToLogRequest(ctx)) {
|
|
179
|
+
return Log.channelOrVanilla(channel).info(ctx);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
174
182
|
}
|
|
175
183
|
/**
|
|
176
184
|
* Register all the controllers found inside "rc.controllers" config
|