Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhdzg committed Dec 8, 2023
1 parent 683c578 commit ffa9f9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class WinstonInstrumentation extends InstrumentationBase {

private _emitLogRecord(record: Record<string, any>): void {
const { message, msg, level, meta, ...splat } = record;
const attributes = Object.assign(meta, {});
const attributes = Object.assign(meta ?? {}, {});
for (const key in splat) {
if (Object.prototype.hasOwnProperty.call(splat, key)) {
attributes[key] = splat[key];
Expand Down

0 comments on commit ffa9f9b

Please sign in to comment.