debug mode implies verbose mode now

This commit is contained in:
Edwin Eefting 2022-01-23 21:22:46 +01:00
parent 7b4f10080f
commit c299626d18
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class ZfsAuto(object):
if args.test:
args.verbose = True
if args.debug:
args.verbose = True
self.log = LogConsole(show_debug=args.debug, show_verbose=args.verbose, color=sys.stdout.isatty())
self.verbose(self.HEADER)

View File

@ -330,6 +330,7 @@ class ZfsAutobackup(ZfsAuto):
fail_count = fail_count + 1
source_dataset.error("FAILED: " + str(e))
if self.args.debug:
self.verbose("Debug mode, aborting on first error")
raise
if self.args.progress: