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:
Claude4Ξlope 2025-06-27 16:45:21 +02:00
parent a7ec20b034
commit 6025bb1256
1 changed files with 1 additions and 1 deletions

View File

@ -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: