diff options
| author | 2023-12-11 01:12:30 -0500 | |
|---|---|---|
| committer | 2023-12-11 01:12:30 -0500 | |
| commit | 30dee4697019389ef29458b2e3931adc976389b2 (patch) | |
| tree | 9c627d0f873d3d2efe5a1c3881a5feaec3acf5d4 /gallery_dl/output.py | |
| parent | 2a817af4fe41289fa705bdc5ee61372333f43996 (diff) | |
New upstream version 1.26.4.upstream/1.26.4
Diffstat (limited to 'gallery_dl/output.py')
| -rw-r--r-- | gallery_dl/output.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/output.py b/gallery_dl/output.py index 9508ff3..c0971f0 100644 --- a/gallery_dl/output.py +++ b/gallery_dl/output.py @@ -210,7 +210,7 @@ def configure_logging(loglevel): root.setLevel(minlevel) -def setup_logging_handler(key, fmt=LOG_FORMAT, lvl=LOG_LEVEL): +def setup_logging_handler(key, fmt=LOG_FORMAT, lvl=LOG_LEVEL, mode="w"): """Setup a new logging handler""" opts = config.interpolate(("output",), key) if not opts: @@ -219,7 +219,7 @@ def setup_logging_handler(key, fmt=LOG_FORMAT, lvl=LOG_LEVEL): opts = {"path": opts} path = opts.get("path") - mode = opts.get("mode", "w") + mode = opts.get("mode", mode) encoding = opts.get("encoding", "utf-8") try: path = util.expand_path(path) |
