Skip to content

Commit 8923ee1

Browse files
committed
fix(logging): align context detection with filter options
1 parent bb139f6 commit 8923ee1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/logging/context.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ export const getComponentContext = (error?: Error): string => {
127127
}
128128

129129
if (stack.includes('notification') || stack.includes('Notification')) {
130-
return 'notification';
130+
return 'notifications';
131131
}
132132

133133
if (stack.includes('update') || stack.includes('Update')) {
134-
return 'update';
134+
return 'updates';
135135
}
136136

137137
if (
@@ -144,6 +144,14 @@ export const getComponentContext = (error?: Error): string => {
144144
return 'outlook';
145145
}
146146

147+
if (
148+
stack.includes('server') ||
149+
stack.includes('Server') ||
150+
stack.includes('servers')
151+
) {
152+
return 'servers';
153+
}
154+
147155
if (
148156
stack.includes('video') ||
149157
stack.includes('Video') ||

0 commit comments

Comments
 (0)