Skip to content

Commit

Permalink
Merge pull request #630 from Chia-Network/feat/log-add-version-to-format
Browse files Browse the repository at this point in the history
feat: add package version to logger format
  • Loading branch information
MichaelTaylor3D authored Jul 5, 2022
2 parents 803ee44 + 64d193b commit 33b56a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/logger.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (!fs.existsSync(logDir)) {
}
const logFormat = format.printf(
(info) =>
`${info.timestamp} [${info.level}]: ${info.message} ${
`${info.timestamp} [${packageJson.version}] [${info.level}]: ${info.message} ${
Object.keys(info.metadata || {}).length > 0
? JSON.stringify(info.metadata)
: ''
Expand Down

0 comments on commit 33b56a5

Please sign in to comment.