This commit is contained in:
dylan 2023-04-26 15:17:03 +08:00
parent bbe86925db
commit 1a0d9442d7
1 changed files with 5 additions and 0 deletions

View File

@ -611,6 +611,11 @@ if __name__ == '__main__':
'dry_run': args.dry_run,
'log_level': args.log_level
}
if "DEBUG" in os.environ and os.environ["DEBUG"] == 'true':
opts = {
'dry_run': args.dry_run,
'log_level': 'DEBUG'
}
if hasattr(args, 'log_file'):
opts['log_file'] = args.log_file
else: