eth-cache

Ethereum chain data caching tools
Log | Files | Refs | LICENSE

commit e280eab42eb0c3b39ff89e2c3facc5e83a217267
parent a29785488fe8919b4fbf1b229a65a7d25750659a
Author: lash <dev@holbrook.no>
Date:   Tue, 18 Jun 2024 03:26:27 +0100

Remove stray prints, add logs to lmdb test

Diffstat:
Meth_cache/store/lmdb.py | 1-
Mtests/test_lmdb.py | 4++++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/eth_cache/store/lmdb.py b/eth_cache/store/lmdb.py @@ -36,7 +36,6 @@ class LmdbStoreAdder: def add(self, k, v): - print("adding {} {} {}\n".format(self.action, k, v)) dbk = to_path_key(self.action.value, k) with self.db.begin(write=True) as dbtx: dbtx.put(dbk, v) diff --git a/tests/test_lmdb.py b/tests/test_lmdb.py @@ -1,6 +1,7 @@ # standard imports import unittest import json +import logging # external imports from chainlib.eth.address import is_same_address @@ -26,6 +27,9 @@ from eth_cache.store.lmdb import LmdbStore from eth_cache.rpc import CacheRPC from tests.util import TestCache +logging.basicConfig(level=logging.DEBUG) +logg = logging.getLogger() + class TestCacheBasic(TestCache):