diff options
| author | 2020-06-01 23:11:38 -0400 | |
|---|---|---|
| committer | 2020-06-01 23:11:38 -0400 | |
| commit | e71c0d2e99f894c50b0d514729a8b44a90ce03a4 (patch) | |
| tree | fc2ab19492570cf481e6efca5c42736a3c85f875 /gallery_dl/postprocessor/common.py | |
| parent | 40449733839d8ac9d6f44cc5942fb7623817d186 (diff) | |
| parent | a70a3246927b72f1ded37acd55ee719515441b5b (diff) | |
Update upstream source from tag 'upstream/1.14.0'
Update to upstream version '1.14.0'
with Debian dir e10ad4f35c0e6250ed14f70c95b81b307b7b2acf
Diffstat (limited to 'gallery_dl/postprocessor/common.py')
| -rw-r--r-- | gallery_dl/postprocessor/common.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gallery_dl/postprocessor/common.py b/gallery_dl/postprocessor/common.py index 70b0dfb..64f978e 100644 --- a/gallery_dl/postprocessor/common.py +++ b/gallery_dl/postprocessor/common.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2018-2019 Mike Fährmann +# Copyright 2018-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 @@ -8,15 +8,13 @@ """Common classes and constants used by postprocessor modules.""" -import logging - class PostProcessor(): """Base class for postprocessors""" - def __init__(self): + def __init__(self, job): name = self.__class__.__name__[:-2].lower() - self.log = logging.getLogger("postprocessor." + name) + self.log = job.get_logger("postprocessor." + name) @staticmethod def prepare(pathfmt): |
