Skip to content

Commit 819eb16

Browse files
committed
chore: improve eventContextForLog error message.
Because the input type is any we should not treat this as an error, but instead a warning.
1 parent 8712e51 commit 819eb16

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

meteor/lib/clientUserAction.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,10 @@ export function eventContextForLog(e: any): [string, Time] {
265265
str = e.type
266266
}
267267
if (!str) {
268-
logger.error(
269-
'Could not create context in eventContextForLog, because provided event had no identifiable type',
270-
e
268+
logger.warn(
269+
`Could not create context in eventContextForLog, because provided event had no identifiable type: ${JSON.stringify(
270+
e
271+
)}, stack: ${new Error().stack}`
271272
)
272273
str = 'N/A'
273274
}

0 commit comments

Comments
 (0)