Added verbosity level

This commit is contained in:
Daniel Dayley 2023-05-26 16:35:03 -06:00
parent f30d80b9b1
commit f27b0804e2
Signed by: Cronocide
GPG Key ID: 2CB7D4B8DEB3198E

View File

@ -106,6 +106,8 @@ if __name__ == '__main__':
# Configure logging # Configure logging
log_options = [logging.ERROR, logging.WARNING, logging.INFO, logging.DEBUG] log_options = [logging.ERROR, logging.WARNING, logging.INFO, logging.DEBUG]
if 'VERBOSITY_LEVEL' in os.environ.keys() :
args.verbose = int(os.environ['VERBOSITY_LEVEL'])
if not args.verbose : if not args.verbose :
args.verbose = 0 args.verbose = 0
if args.verbose > 3 : if args.verbose > 3 :