We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8886d2 commit ccb4656Copy full SHA for ccb4656
1 file changed
rewrite-python/rewrite/src/rewrite/rpc/server.py
@@ -27,6 +27,7 @@
27
import os
28
import select
29
import sys
30
+import tempfile
31
import traceback
32
import threading
33
from pathlib import Path
@@ -35,7 +36,7 @@
35
36
37
# Configure logging - log to file by default to avoid filling stderr buffer
38
# (which can cause deadlock if parent process doesn't read stderr)
-_default_log_file = '/tmp/python-rpc.log'
39
+_default_log_file = os.path.join(tempfile.gettempdir(), 'python-rpc.log')
40
logging.basicConfig(
41
level=logging.INFO,
42
format='%(asctime)s - %(levelname)s - %(message)s',
0 commit comments