Skip to content

Commit

Permalink
Logging: Set default to info, error when quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Jul 9, 2021
1 parent 69d5100 commit 67e1306
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/orgMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ function getConfigFromArgv(argv) {
};

addConsoleTransport({
level: argv.quiet ? "error" : "debug"
// silent: argv.quiet
level: argv.quiet ? "error" : "info"
});

if (argv.log) {
addFileTransport({
filename: "./logs/organize-%DATE%.log",
filename: argv.log,
datePattern: "YYYY-MM-DD-HH",
maxSize: "20m",
maxFiles: 10
Expand Down

0 comments on commit 67e1306

Please sign in to comment.