From 262580ab411ea209c86a4f8901f8deffe96588a2 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 25 Jan 2021 14:39:26 -0800 Subject: [PATCH] Use vlogging instead of logging. --- voussoirkit/spinal.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index ef2e8bb..d84e6ca 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -4,18 +4,17 @@ import os import shutil import sys -# pip install voussoirkit from voussoirkit import bytestring from voussoirkit import dotdict from voussoirkit import pathclass from voussoirkit import ratelimiter from voussoirkit import sentinel +from voussoirkit import vlogging + +log = vlogging.getLogger(__name__) BAIL = sentinel.Sentinel('BAIL') -logging.basicConfig(level=logging.CRITICAL) -log = logging.getLogger(__name__) - # Number of bytes to read and write at a time CHUNK_SIZE = 2 * bytestring.MIBIBYTE @@ -516,7 +515,7 @@ def copy_file( source_handle.close() log.debug('Closing dest handle.') destination_handle.close() - log.debug('Copying metadata') + log.debug('Copying metadata.') shutil.copystat(source.absolute_path, destination.absolute_path) if validate_hash: