1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-26 20:43:32 +01:00

Changing logging module location.

This commit is contained in:
2021-06-28 22:02:41 +02:00
parent b574357c2c
commit 3f57198f91
10 changed files with 41 additions and 30 deletions

View File

@@ -4,10 +4,13 @@ import io
import numbers
import zlib
from ebook_converter.utils.logging import default_log
from ebook_converter import logging
from ebook_converter import polyglot
LOG = logging.default_log
pdf_float = lambda x: f"{x:.1f}"
EOL = b'\n'
@@ -234,7 +237,7 @@ class Reference(object):
def current_log(newlog=None):
if newlog:
current_log.ans = newlog
return current_log.ans or default_log
return current_log.ans or LOG
current_log.ans = None