Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 00340af

Browse files
committed
disable trace logging in tests (pls activate if needed)
1 parent 38f6456 commit 00340af

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

ethereum/tests/test_chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from ethereum.slogging import get_logger, configure_logging
1515
logger = get_logger()
16-
configure_logging('eth.vm:trace,eth.vm.memory:info')
16+
# configure_logging('eth.vm:trace,eth.vm.memory:info')
1717

1818
db = EphemDB()
1919

ethereum/tests/test_genesis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ethereum.tests.utils import new_db
88
from ethereum.slogging import get_logger, configure_logging
99
logger = get_logger()
10-
configure_logging(':trace')
10+
# configure_logging(':trace')
1111

1212

1313
@pytest.fixture(scope="module")

ethereum/tests/test_logging.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,8 @@ def run_vm(raise_error=False):
312312
log = slogging.get_logger('eth.vm')
313313
for x in recorder.pop_records():
314314
log.info(x.pop('event'), **x)
315+
316+
317+
def test_cleanup():
318+
config_string = ':debug'
319+
slogging.configure(config_string=config_string)

ethereum/tests/test_remoteblocks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
logger = get_logger()
66
# customize VM log output to your needs
77
# hint: use 'py.test' with the '-s' option to dump logs to the console
8-
configure_logging(':trace')
98

109

1110
def import_chain_data(raw_blocks_fn, test_db_path, skip=0):

ethereum/tests/test_state.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
logger = get_logger()
88
# customize VM log output to your needs
99
# hint: use 'py.test' with the '-s' option to dump logs to the console
10-
if '--notrace' not in sys.argv:
11-
pass # configure_logging(':trace')
12-
else:
13-
sys.argv.remove('--notrace')
10+
if '--trace' in sys.argv: # not default
11+
configure_logging(':trace')
12+
sys.argv.remove('trace')
1413

1514

1615
# SETUP TESTS IN GLOBAL NAME SPACE

ethereum/tests/test_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
logger = get_logger()
1313
# customize VM log output to your needs
1414
# hint: use 'py.test' with the '-s' option to dump logs to the console
15-
configure_logging(':trace')
15+
# configure_logging(':trace')
1616

1717
encode_hex('')
1818

ethereum/tests/test_trie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# customize VM log output to your needs
1414
# hint: use 'py.test' with the '-s' option to dump logs to the console
15-
configure_logging(':trace')
15+
#configure_logging(':trace')
1616

1717

1818
def check_testdata(data_keys, expected_keys):

ethereum/tests/test_trie_next_prev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# customize VM log output to your needs
1010
# hint: use 'py.test' with the '-s' option to dump logs to the console
11-
configure_logging(':trace')
11+
# configure_logging(':trace')
1212

1313

1414
def check_testdata(data_keys, expected_keys):

0 commit comments

Comments
 (0)