mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix: update trace listener PID file path
This commit is contained in:
parent
a11162ded7
commit
81a62e1eed
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ from planoai.consts import PLANO_COLOR
|
|||
DEFAULT_GRPC_PORT = 4317
|
||||
MAX_TRACES = 50
|
||||
MAX_SPANS_PER_TRACE = 500
|
||||
TRACE_LISTENER_PID_FILE = os.path.expanduser("~/.plano_trace_listener.pid")
|
||||
TRACE_LISTENER_PID_FILE = os.path.expanduser("~/.plano/run/trace_listener.pid")
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
@ -61,6 +61,7 @@ def _is_port_in_use(port: int) -> bool:
|
|||
|
||||
def _save_listener_pid(pid: int) -> None:
|
||||
"""Save the listener process PID to a file."""
|
||||
os.makedirs(os.path.dirname(TRACE_LISTENER_PID_FILE), exist_ok=True)
|
||||
with open(TRACE_LISTENER_PID_FILE, "w") as f:
|
||||
f.write(str(pid))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue