updated the debug variable to opts.debug to work

This commit is contained in:
2020-09-23 21:35:30 -04:00
parent 342a529c58
commit 52e213931c

View File

@@ -167,7 +167,7 @@ if __name__ == '__main__':
help="Output debug/verbose info to the console for troubleshooting."
)
opts, args = parser.parse_args(sys.argv[1:])
if debug:
if opts.debug:
logger = utils.build_console_logger(logging.DEBUG)
else:
logger = utils.build_console_logger(logging.INFO)