update log.verbose from options

This commit is contained in:
Norbert Preining 2019-02-25 11:55:32 +09:00
parent 8b7d772680
commit 8cabe38e49
2 changed files with 3 additions and 1 deletions

View file

@ -249,6 +249,8 @@ final class Config
outputLongHelp(opt.options);
exit(EXIT_SUCCESS);
}
// update verbosity setting
log.verbose = longValues["verbose"];
} catch (GetOptException e) {
log.error(e.msg);
log.error("Try 'onedrive -h' for more information");

View file

@ -10,7 +10,7 @@ version(Notifications) {
}
// enable verbose logging
int verbose;
long verbose;
bool writeLogFile = false;
private bool doNotifications;