Fix daemon start directory creation
- Added parents=True to mkdir call to create parent directories - Fixes FileNotFoundError when starting daemon in background 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a7ec20b034
commit
6025bb1256
|
|
@ -378,7 +378,7 @@ async def start_daemon_background(args):
|
||||||
|
|
||||||
# Redirect stdout/stderr to log file
|
# Redirect stdout/stderr to log file
|
||||||
log_dir = socket_path.parent / "logs"
|
log_dir = socket_path.parent / "logs"
|
||||||
log_dir.mkdir(exist_ok=True)
|
log_dir.mkdir(parents=True, exist_ok=True)
|
||||||
log_file = log_dir / f"mcp-browser-{args.server or 'default'}.log"
|
log_file = log_dir / f"mcp-browser-{args.server or 'default'}.log"
|
||||||
|
|
||||||
with open(log_file, 'a') as log:
|
with open(log_file, 'a') as log:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue