Open JasperAlgra opened 4 years ago
Hmmm yes, there is an inconsistency. What do you advise for both issues?
I'd say regarding the logging; let both the logfile and the console logging be set with the same log level. Or create two log levels (e.g. file_loglevel and console_loglevel), maybe that would suite everyone (in case you want simple log to the console but very verbose debug in a file or so).
I can make a PR for this if you like, what do you prefer?
Regarding the other issue I have to do some digging. That will be a bit of a challenge on windows so i'll let you know if I can debug it.
Well, for me making them both the same is somehow more elegant. It will not require an extra argument as well. Let's make them both the same with a single option/argument.
Hey guys, I just noticed this issue, and my PR #390 touches a small part of it too. For my 2 cents, I think we should just not have a 'verbose' option; it seems like 2 different ways to set log-level, and we should only have 1 way (Specify log-level via config or command line param: -l DEBUG, log= in config).
I've noticed since version 1.5.5 the --verbose flag only logs INFO to the console, even when level is set to DEBUG.
Is this suppose to happen? If so I can update the documentation. This is also related to my other issue #382
I think it would be better to let the log level be set both for file-logging and console-logging, so a user can check on their preferred output. https://github.com/ShahriyarR/MySQL-AutoXtraBackup/blob/51afdd437fd67bede9719d46c5d5b0c94a6304dc/autoxtrabackup.py#L200
command:
/usr/local/bin/autoxtrabackup -l DEBUG -lf /mnt/backup/autoxtrabackup.log --backup
Output from console:
Output in logfile: