Skip to content

Commit

Permalink
minor updates on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
krik8235 committed Feb 13, 2025
1 parent 5be7d27 commit 38ff556
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ memo.txt
site/

_logs/
.cache
.logs/
.cache/
__pycache__
.ruff_cache/
.pytest_cache/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ src/
└── uploads/ [.gitignore] # Local directory to store uploaded files such as graphviz diagrams generatd by `Network` class
└── _logs/ [.gitignore] # Local directory to store error/warning logs for debugging
└── .logs/ [.gitignore] # Local directory to store error/warning logs for debugging
pyproject.toml # Project config
Expand Down Expand Up @@ -510,7 +510,7 @@ Common issues and solutions:
* Issues related to dependencies: `rm -rf uv.lock`, `uv cache clean`, `uv venv`, and run `uv pip install -r requirements.txt -v`.
* Issues related to agents and other systems: Check `_logs` directory for detailed error messages and stack traces.
* Issues related to agents and other systems: Check `.logs` directory located in the root directory for error messages and stack traces.
* Issues related to `Python quit unexpectedly`: Check [this stackoverflow article](https://stackoverflow.com/questions/59888499/macos-catalina-python-quit-unexpectedly-error).
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Common issues and solutions:
* Issues related to dependencies: `rm -rf uv.lock`, `uv cache clean`, `uv venv`, and run `uv pip install -r requirements.txt -v`.
* Issues related to agents and other systems: Check `_logs` directory for detailed error messages and stack traces.
* Issues related to agents and other systems: Check `.logs` directory located in the root directory for detailed error messages and stack traces.
* Issues related to `Python quit unexpectedly`: Check [this stackoverflow article](https://stackoverflow.com/questions/59888499/macos-catalina-python-quit-unexpectedly-error).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = ["test*", "__pycache__", "*.egg-info"]

[project]
name = "versionhq"
version = "1.2.1.4"
version = "1.2.1.5"
authors = [{ name = "Kuriko Iwai", email = "kuriko@versi0n.io" }]
description = "An agentic orchestration framework for building agent networks that handle task automation."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/versionhq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from versionhq.task.formation import form_agent_network


__version__ = "1.2.1.4"
__version__ = "1.2.1.5"
__all__ = [
"Agent",

Expand Down
2 changes: 1 addition & 1 deletion src/versionhq/_utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _save(self, level: str, message: str, filename: str = None):
pass

cwd = Path.cwd()
log_file_dir = f"{cwd}/_logs"
log_file_dir = f"{cwd}/.logs"
os.makedirs(log_file_dir, exist_ok=True)
filename = filename if filename else datetime.now().strftime('%H_%M_%S_%d_%m_%Y')
abs_dir = f"{log_file_dir}/{filename}.log"
Expand Down

0 comments on commit 38ff556

Please sign in to comment.