fix: logs
This commit is contained in:
@@ -24,6 +24,7 @@ SOCKET_ROOT_DIR = Path("/tmp/neotest-python")
|
|||||||
python_socket_path = (
|
python_socket_path = (
|
||||||
SOCKET_ROOT_DIR / hashlib.sha1(sys.executable.encode()).digest().hex()
|
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 = logging.getLogger('neotest-python')
|
||||||
logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log')))
|
logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log')))
|
||||||
|
|||||||
Reference in New Issue
Block a user