Skip to content

Commit 275fb6e

Browse files
committed
Allow numbers in error log context
1 parent de5be0f commit 275fb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/util/logError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function assert(condition: boolean, desc?: string, context?: Record<strin
1616
}
1717
}
1818

19-
export function logError(err: any, context?: Record<string, string>, extra?: Record<string, string>) {
19+
export function logError(err: any, context?: Record<string, string | number>, extra?: Record<string, string | number>) {
2020
const metaInfo = deepMerge(context ?? {}, extra ?? {});
2121
if (err?.requestBody?.files) {
2222
err.requestBody = [];

0 commit comments

Comments
 (0)