aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/__init__.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:22 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:22 -0400
commitf1baa4aa12d705e290f74c9fb4c6cd5eb2976fa2 (patch)
tree70267e5f04db1da396e75fd4148d9c542683bbab /gallery_dl/__init__.py
parent2bd320e568d015940227b7355396701331e2cd1e (diff)
parente8cc000750de972384f2f34d02d42222b4018ae9 (diff)
Update upstream source from tag 'upstream/1.13.2'
Update to upstream version '1.13.2' with Debian dir a36309ac1ae7b23d042eaafd21c4267c2f840ab4
Diffstat (limited to 'gallery_dl/__init__.py')
-rw-r--r--gallery_dl/__init__.py13
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: