From 8801407f58e2d2823ed3c47b0dc9b982c1584530 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 23 Sep 2021 22:47:04 -0700 Subject: [PATCH] Add --warning level. --- voussoirkit/vlogging.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/voussoirkit/vlogging.py b/voussoirkit/vlogging.py index 867e518..258da75 100644 --- a/voussoirkit/vlogging.py +++ b/voussoirkit/vlogging.py @@ -51,6 +51,7 @@ def get_level_by_argv(argv): --loud: LOUD --debug: DEBUG + --warning: WARNING --quiet: ERROR --silent: SILENT none of the above: INFO @@ -63,6 +64,9 @@ def get_level_by_argv(argv): elif '--debug' in argv: level = DEBUG argv.remove('--debug') + elif '--warning' in argv: + level = WARNING + argv.remove('--warning') elif '--quiet' in argv: level = ERROR argv.remove('--quiet')