We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42ee07 commit ede401fCopy full SHA for ede401f
brain_core/logging_config.py
@@ -76,6 +76,10 @@ def setup_logging(
76
log_dir = Path.home() / ".brain" / "logs"
77
log_dir.mkdir(parents=True, exist_ok=True)
78
log_file = log_dir / "brain.log"
79
+ else:
80
+ # Expand ~ in path and ensure parent directory exists
81
+ log_file = Path(log_file).expanduser()
82
+ log_file.parent.mkdir(parents=True, exist_ok=True)
83
84
# Rotating file handler: max 10MB per file, keep 5 backup files
85
# This means max ~50MB of logs total (10MB current + 5x10MB backups)
0 commit comments