We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cadc4b2 commit 9782097Copy full SHA for 9782097
extensions/logging/src/interceptors/logging.interceptor.ts
@@ -75,7 +75,11 @@ export interface AccessLogOptions extends morgan.Options {
75
* A global interceptor that provides logging for http requests/responses.
76
*/
77
@bind(asGlobalInterceptor('logging'), {
78
- tags: {[ContextTags.KEY]: LoggingBindings.WINSTON_HTTP_ACCESS_LOGGER},
+ tags: {
79
+ [ContextTags.KEY]: LoggingBindings.WINSTON_HTTP_ACCESS_LOGGER,
80
+ // Only apply to invocations from REST routes
81
+ [ContextTags.GLOBAL_INTERCEPTOR_SOURCE]: 'route',
82
+ },
83
scope: BindingScope.SINGLETON,
84
})
85
export class HttpAccessLogInterceptor implements Provider<Interceptor> {
0 commit comments