1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 10:18:12 +00:00

use new logger object initialisation code

This commit is contained in:
Antoine Beaupré 2015-10-06 12:33:55 -04:00
parent 26561a7766
commit 42cc17caed
5 changed files with 9 additions and 10 deletions

View file

@ -4,10 +4,12 @@
from itertools import groupby
import errno
import logging
logger = logging.getLogger(__name__)
from .logger import create_logger
logger = create_logger()
from .key import key_factory
from .remote import cache_if_remote
import msgpack
import os
import socket

View file

@ -7,8 +7,6 @@
import functools
import inspect
import io
import logging
logger = logging.getLogger(__name__)
import os
import signal
@ -20,7 +18,8 @@
from . import __version__
from .archive import Archive, ArchiveChecker, CHUNKER_PARAMS
from .compress import Compressor, COMPR_BUFFER
from .logger import setup_logging
from .logger import create_logger, setup_logging
logger = create_logger()
from .upgrader import AtticRepositoryUpgrader
from .repository import Repository
from .cache import Cache

View file

@ -2,8 +2,6 @@
from .remote import cache_if_remote
from collections import namedtuple
import errno
import logging
logger = logging.getLogger(__name__)
import msgpack
import os
@ -15,6 +13,8 @@
import tempfile
from .key import PlaintextKey
from .logger import create_logger
logger = create_logger()
from .helpers import Error, get_cache_dir, decode_dict, st_mtime_ns, unhexlify, int_to_bigint, \
bigint_to_int, format_file_size
from .locking import UpgradableLock

View file

@ -5,8 +5,6 @@
from collections import namedtuple
from functools import wraps
import grp
import logging
logger = logging.getLogger(__name__)
import os
import pwd

View file

@ -1,8 +1,6 @@
from binascii import hexlify, a2b_base64, b2a_base64
import configparser
import getpass
import logging
logger = logging.getLogger(__name__)
import os
import msgpack
@ -13,6 +11,8 @@
from .crypto import pbkdf2_sha256, get_random_bytes, AES, bytes_to_long, long_to_bytes, bytes_to_int, num_aes_blocks
from .compress import Compressor, COMPR_BUFFER
from .helpers import IntegrityError, get_keys_dir, Error
from .logger import create_logger
logger = create_logger()
PREFIX = b'\0' * 8