From b4c1c7b625d57627716929319f855fb4d5df518d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 25 Oct 2021 11:54:06 -0700 Subject: [PATCH] Use vlogging.main_decorator. --- pixelcanvas.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pixelcanvas.py b/pixelcanvas.py index 47b819e..dcefcbe 100644 --- a/pixelcanvas.py +++ b/pixelcanvas.py @@ -12,6 +12,7 @@ from voussoirkit import threadpool from voussoirkit import vlogging log = vlogging.getLogger(__name__, 'pixelcanvasdl') +vlogging.getLogger('urllib3.connectionpool').setLevel(vlogging.CRITICAL) WHITE = (255, 255, 255) LIGHTGRAY = (228, 228, 228) @@ -546,10 +547,8 @@ def update_argparse(args): except KeyboardInterrupt: db_commit() +@vlogging.main_decorator def main(argv): - argv = vlogging.main_level_by_argv(argv) - vlogging.getLogger('urllib3.connectionpool').setLevel(vlogging.CRITICAL) - parser = argparse.ArgumentParser() subparsers = parser.add_subparsers()