fix: update session logging directory path in README and code
- Changed the session logging directory from `~/.hermes-agent/logs/` to `~/.hermes/sessions/` for consistency. - Updated the `run_agent.py` to reflect the new logging path, ensuring session logs are stored correctly alongside gateway sessions.
This commit is contained in:
parent
a54a27595b
commit
3976962621
2 changed files with 7 additions and 7 deletions
|
|
@ -1295,9 +1295,10 @@ class AIAgent:
|
|||
short_uuid = uuid.uuid4().hex[:6]
|
||||
self.session_id = f"{timestamp_str}_{short_uuid}"
|
||||
|
||||
# Setup logs directory
|
||||
self.logs_dir = Path(__file__).parent / "logs"
|
||||
self.logs_dir.mkdir(exist_ok=True)
|
||||
# Session logs go into ~/.hermes/sessions/ alongside gateway sessions
|
||||
hermes_home = Path(os.getenv("HERMES_HOME", Path.home() / ".hermes"))
|
||||
self.logs_dir = hermes_home / "sessions"
|
||||
self.logs_dir.mkdir(parents=True, exist_ok=True)
|
||||
self.session_log_file = self.logs_dir / f"session_{self.session_id}.json"
|
||||
|
||||
# Track conversation messages for session logging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue