Skip to content

Commit bc63ae2

Browse files
committed
remove message variable
1 parent 463618a commit bc63ae2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/core/src/integrations/consola.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ export function createConsolaReporter(options: ConsolaReporterOptions = {}): Con
246246
// Extra keys on logObj (beyond reserved) indicate direct `reporter.log({ type, message, ...rest })`
247247
if (hasExtraLogObjKeys && args && args.length >= 1 && typeof args[0] === 'string') {
248248
// Use first 'string' arg as message
249-
const message = args[0];
250-
251-
_INTERNAL_captureLog({ level: logSeverityLevel, message, attributes });
249+
_INTERNAL_captureLog({ level: logSeverityLevel, message: args[0], attributes });
252250
return;
253251
}
254252

0 commit comments

Comments
 (0)