fix logging in migrator

This commit is contained in:
Jack Robison 2022-04-07 11:57:41 -04:00
parent 5d8a32368a
commit 881fdf347c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -10,8 +10,6 @@ if typing.TYPE_CHECKING:
FROM_VERSION = 7 FROM_VERSION = 7
TO_VERSION = 8 TO_VERSION = 8
log = logging.getLogger()
def get_all_hashXs(db): def get_all_hashXs(db):
def iterator(): def iterator():
@ -48,6 +46,7 @@ def hashX_status_from_history(db: 'HubDB', history: bytes) -> bytes:
def migrate(db): def migrate(db):
log = logging.getLogger(__name__)
start = time.perf_counter() start = time.perf_counter()
prefix_db = db.prefix_db prefix_db = db.prefix_db
hashXs = get_all_hashXs(db) hashXs = get_all_hashXs(db)