Skip to content

Commit 6215ad9

Browse files
committed
json the parameters
1 parent 6f3560c commit 6215ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function addToLogBuffer(client: Client, log: Log, scope: Scope): void {
114114
* The other parameters are in the format to be passed a tagged template, Sentry.info`hello ${world}`
115115
*/
116116
export function sendLog(level: LogSeverityLevel, messageArr: TemplateStringsArray, ...values: unknown[]): void {
117-
const message = messageArr.reduce((acc, str, i) => acc + str + (values[i] ?? ''), '');
117+
const message = messageArr.reduce((acc, str, i) => acc + str + (JSON.stringify(values[i]) ?? ''), '');
118118

119119
const attributes = values.reduce<Record<string, unknown>>(
120120
(acc, value, index) => {

0 commit comments

Comments
 (0)