Skip to content

Commit

Permalink
#1045: use new lazy flag in winston 3.10.0 to ensure error.log files …
Browse files Browse the repository at this point in the history
…are only created when needed
  • Loading branch information
JoernBerkefeld committed Jul 25, 2023
1 parent 63d6ea9 commit fed0939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ const Util = {
// Write logs to additional error-logfile for better visibility of errors
filename: 'logs/' + logFileName + '-errors.log',
level: 'error', // only log errors
lazy: true, // if true, log files will be created on demand, not at the initialization time.
format: winston.format.combine(
winston.format.uncolorize(),
winston.format.timestamp({ format: 'HH:mm:ss.SSS' }),
Expand Down

0 comments on commit fed0939

Please sign in to comment.