diff options
| author | 2020-03-16 23:20:15 -0400 | |
|---|---|---|
| committer | 2020-03-16 23:20:15 -0400 | |
| commit | e8cc000750de972384f2f34d02d42222b4018ae9 (patch) | |
| tree | 26eb0bacedff7480d29bafcf184ca529cf9f1d9f /gallery_dl/__init__.py | |
| parent | 4366125d2580982abb57bc65a26fc1fb8ef2a5df (diff) | |
New upstream version 1.13.2upstream/1.13.2
Diffstat (limited to 'gallery_dl/__init__.py')
| -rw-r--r-- | gallery_dl/__init__.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index ffaed3d..6fba5e2 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2014-2019 Mike Fährmann +# Copyright 2014-2020 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -129,17 +129,8 @@ def main(): for opts in args.options: config.set(*opts) - # stream logging handler - output.configure_logging_handler( - "log", logging.getLogger().handlers[0]) - - # file logging handler - handler = output.setup_logging_handler( - "logfile", lvl=args.loglevel) - if handler: - logging.getLogger().addHandler(handler) - # loglevels + output.configure_logging(args.loglevel) if args.loglevel >= logging.ERROR: config.set(("output",), "mode", "null") elif args.loglevel <= logging.DEBUG: |
