-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging update. Fixed regression and update to Docker log handling. #1066
Conversation
kga245
commented
Jan 7, 2025
•
edited
Loading
edited
- Event logging fixed to populate JSON log (appears to have been a regression recently re-introduced.
- Added tests to make sure event logging creates a requesite file.
- Changed way docker logs font issues from WeasyPrint to be less verbose.
Problem: - Main application wasn't properly logging research events to output files - Log files were being created but weren't capturing events Solution: - Fixed researcher initialization chain in main application - Modified run_agent() to properly use CustomLogsHandler - Events now correctly captured in output files Testing: - Verified through uvicorn main:app --reload - Events properly logged to outputs/task_*.json
- Add test to verify researcher event logging - Test ensures events are properly captured in output files - Validates log file structure and content - Confirms proper initialization of CustomLogsHandler
- Added explicit logging level configuration in docker-compose.yml - Suppressed verbose fontTools logging messages in main.py
Noticed that logs didn't sync to OS when using docker. Wanted to expose those and all outputs when running docker. |
Hey @kga245 can i merge this after tests? |
Yep, I expected that! |
FWIW I am bringing in a full-time tester. We're going to put this on the rails! |
FYI, running as uvicorn/fastapi on a heroku dyno produces some very verbose logs which is actually desired behavior. I didn't anticipate that but it's a happy accident. |
So excited to have you onboard! @kga245 🚀 |
Thank you for raising this issue! I'll look into it and try to help if I can. |