Skip to content

Commit

Permalink
fix(): spread dynamic metadata before static metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelvesavuori committed Nov 15, 2022
1 parent 53c62bd commit b6f69be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mikrolog",
"description": "The JSON logger you always wanted for Lambda.",
"version": "2.1.9",
"version": "2.1.10",
"author": "Mikael Vesavuori",
"license": "MIT",
"main": "./lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/entities/MikroLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ export class MikroLog {
const dynamicMetadata = this.produceDynamicMetadata();

const logOutput = {
...staticMetadata,
...dynamicMetadata,
...staticMetadata,
message: log.message,
error: log.level === 'ERROR',
level: log.level,
Expand Down

0 comments on commit b6f69be

Please sign in to comment.