Skip to content

Commit

Permalink
refactor: change log for config reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Sep 24, 2024
1 parent 18a3895 commit 2ac9874
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions server/src/utils/reloadConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,17 @@ async function reloadConfig() {
} catch {
// do nothing
}
log.info(TAGS.config, `'${key}' -`, 'old:', oldValue, 'new:', newValue)
log.info(
TAGS.config,
`updated '${key}' -`,
'old:',
oldValue,
'new:',
newValue,
)
}

if (valid.length) {
log.info(TAGS.config, 'updating the following config values:')
valid.forEach(print)
}
if (invalid.length) {
Expand Down

0 comments on commit 2ac9874

Please sign in to comment.