Use vlogging.main_decorator.

This commit is contained in:
voussoir 2021-10-25 11:54:06 -07:00
parent dbe166188c
commit b4c1c7b625
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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()