Skip to content

Commit 781f545

Browse files
committed
Introduce Loguru for enhanced debugging and logging
- Replaced standard print statements with Loguru-based logging for better log management. - Added configurable logging depending on debug mode (normal or detailed). - Enhanced error handling with detailed logging in key functions like `ask_question`, `get_api_key_from_context`, and `search_code`. - Improved logging in application lifecycle, including HTTP client setup, request handling, and response processing.
1 parent 5fa7bad commit 781f545

File tree

2 files changed

+252
-66
lines changed

2 files changed

+252
-66
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"fastmcp>=2.0.0",
99
"httpx>=0.26.0",
1010
"python-dotenv>=1.0.0",
11+
"loguru>=0.7.0",
1112
]
1213

1314
[project.scripts]
@@ -19,4 +20,4 @@ build-backend = "setuptools.build_meta"
1920

2021
[tool.setuptools]
2122
packages = ["src"]
22-
package-dir = {"" = "."}
23+
package-dir = {"" = "."}

0 commit comments

Comments
 (0)