Skip to content

Commit 50cd0e0

Browse files
committed
debug: yet more debugging code
1 parent 6bfa3f1 commit 50cd0e0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_libraries.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,18 @@ def _get_library_path():
23472347
import os
23482348
import pathlib
23492349
2350+
####
2351+
import logging
2352+
logging.basicConfig(level=logging.DEBUG)
2353+
2354+
import os
2355+
os.environ['ECCODES_PYTHON_TRACE_LIB_SEARCH'] = '1'
2356+
2357+
import findlibs
2358+
findlibs.logger.setLevel(logging.DEBUG)
2359+
findlibs.logger.addHandler(logging.StreamHandler())
2360+
####
2361+
23502362
# With eccodes 2.37.0, eccodes needs to be imported before gribapi to avoid circular imports.
23512363
import eccodes
23522364

0 commit comments

Comments
 (0)