Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix(server): remove extra nodeFramework key from log entries (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
PixnBits committed Apr 5, 2023
1 parent dfc8745 commit 973537c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ exports[`production-formatter encodes as parseable JSON 1`] = `
},
"level": "error",
"message": "1 2 3",
"nodeFramework": "fastify",
"schemaVersion": "0.3.0",
"timestamp": "2018-03-02T02:39:32.948Z",
}
Expand All @@ -36,7 +35,6 @@ exports[`production-formatter errors encodes ClientReportedError Error as parsea
",
},
"level": "error",
"nodeFramework": "fastify",
"request": {
"address": {
"uri": "https://example.com/page-the/error/occurred-on",
Expand Down Expand Up @@ -84,7 +82,6 @@ exports[`production-formatter errors encodes Server Reported Error as parseable
},
},
},
"nodeFramework": "fastify",
"schemaVersion": "0.3.0",
"timestamp": "2018-03-02T02:39:32.948Z",
}
Expand Down Expand Up @@ -115,7 +112,6 @@ exports[`production-formatter errors encodes as parseable JSON 1`] = `
},
"level": "error",
"message": "unable to do the thing",
"nodeFramework": "fastify",
"schemaVersion": "0.3.0",
"timestamp": "2018-03-02T02:39:32.948Z",
}
Expand Down Expand Up @@ -208,7 +204,6 @@ exports[`production-formatter types encodes request as parseable JSON 1`] = `
"id": "host-123:1234",
},
"level": "error",
"nodeFramework": "fastify",
"request": {
"address": {
"url": "https://example.org/server",
Expand Down Expand Up @@ -246,7 +241,6 @@ exports[`production-formatter types uses the default util.format when given an u
},
"level": "error",
"message": "{ type: 'yolo' }",
"nodeFramework": "fastify",
"schemaVersion": "0.3.0",
"timestamp": "2018-03-02T02:39:32.948Z",
}
Expand Down
1 change: 0 additions & 1 deletion src/server/utils/logging/production-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function getBaseEntry(level) {
device,
level: nodeLevelToSchemaLevel[level],
timestamp: new Date().toISOString(),
nodeFramework: 'fastify',
};
}

Expand Down

0 comments on commit 973537c

Please sign in to comment.