diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 19ea77b2..fb3c5cb7 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -113,7 +113,7 @@ def main(): # loglevels output.configure_logging(args.loglevel) - if args.loglevel >= logging.ERROR: + if args.loglevel >= logging.WARNING: config.set(("output",), "mode", "null") config.set(("downloader",), "progress", None) elif args.loglevel <= logging.DEBUG: diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 72a602f2..9825cd23 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -255,6 +255,12 @@ def build_parser(): action="store_const", const=logging.DEBUG, help="Print various debugging information", ) + output.add_argument( + "-w", "--warning", + dest="loglevel", + action="store_const", const=logging.WARNING, + help="Print warnings", + ) output.add_argument( "-g", "--get-urls", dest="list_urls", action="count",