Skip to content

Commit

Permalink
Update mixin advice in changelog (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored May 27, 2022
1 parent 6af51b8 commit 3fcbc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
const loggerContext = new AsyncLocalStorage<{ awsRequestId: string }>();

const logger = createLogger({
mixin: () => loggerContext.getStore() ?? {},
mixin: () => ({ ...loggerContext.getStore() }),
});

const handler = (_event: unknown, { awsRequestId }: Context) =>
Expand Down

0 comments on commit 3fcbc2a

Please sign in to comment.