Skip to content

Commit 480e26d

Browse files
author
maksimov maksim
committed
fix create logs folder
1 parent 4787a48 commit 480e26d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sgr_deep_research/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,8 @@ def setup_logging() -> None:
135135
with open(logging_config_path, "r", encoding="utf-8") as f:
136136
logging_config = yaml.safe_load(f)
137137

138+
# Create logs directory if it doesn't exist
139+
logs_dir = Path(get_config().execution.logs_dir)
140+
logs_dir.mkdir(parents=True, exist_ok=True)
141+
138142
logging.config.dictConfig(logging_config)

0 commit comments

Comments
 (0)