fix: logs

This commit is contained in:
Itai Bohadana
2026-08-18 16:55:56 +03:00
parent 04d3f707b8
commit d67479b1fb
+1
View File
@@ -24,6 +24,7 @@ SOCKET_ROOT_DIR = Path("/tmp/neotest-python")
python_socket_path = (
SOCKET_ROOT_DIR / hashlib.sha1(sys.executable.encode()).digest().hex()
)
python_socket_path.parent.mkdir(exist_ok=True,parents=True)
logger = logging.getLogger('neotest-python')
logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log')))