From 881fdf347c12aeaa82cd1cadca46aa68ef272c32 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 7 Apr 2022 11:57:41 -0400 Subject: [PATCH] fix logging in migrator --- scribe/db/migrators/migrate7to8.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scribe/db/migrators/migrate7to8.py b/scribe/db/migrators/migrate7to8.py index 8a04d5d..58e1627 100644 --- a/scribe/db/migrators/migrate7to8.py +++ b/scribe/db/migrators/migrate7to8.py @@ -10,8 +10,6 @@ if typing.TYPE_CHECKING: FROM_VERSION = 7 TO_VERSION = 8 -log = logging.getLogger() - def get_all_hashXs(db): def iterator(): @@ -48,6 +46,7 @@ def hashX_status_from_history(db: 'HubDB', history: bytes) -> bytes: def migrate(db): + log = logging.getLogger(__name__) start = time.perf_counter() prefix_db = db.prefix_db hashXs = get_all_hashXs(db)