mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-22 23:01:33 -04:00
always setup module level "logger" in the same way
this is a cleanup change, found this while trying to find out why borg_cmd spuriously does not have INFO loglevel when testing with pytest-xdist. the cleanup did NOT help with this, but is at least a cleanup.
This commit is contained in:
parent
5ed6d21302
commit
a1d223cec0
2 changed files with 7 additions and 5 deletions
|
|
@ -3,15 +3,16 @@ from binascii import unhexlify
|
|||
from datetime import datetime
|
||||
from itertools import islice
|
||||
import errno
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import struct
|
||||
from zlib import crc32
|
||||
|
||||
import msgpack
|
||||
|
||||
from .logger import create_logger
|
||||
logger = create_logger()
|
||||
|
||||
from .helpers import Error, ErrorWithTraceback, IntegrityError, Location, ProgressIndicatorPercent, bin_to_hex
|
||||
from .hashindex import NSIndex
|
||||
from .locking import Lock, LockError, LockErrorT
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
import datetime
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
|
||||
from .logger import create_logger
|
||||
logger = create_logger()
|
||||
|
||||
from .helpers import get_keys_dir, get_cache_dir, ProgressIndicatorPercent, bin_to_hex
|
||||
from .locking import Lock
|
||||
from .repository import Repository, MAGIC
|
||||
|
|
|
|||
Loading…
Reference in a new issue