Fix: Session link not appearing in terminal when AGENTOPS_LOG_LEVEL=DEBUG
Fix: Session link not appearing in terminal when AGENTOPS_LOG_LEVEL=DEBUG
Problem
When setting AGENTOPS_LOG_LEVEL=DEBUG, the AgentOps session link is not displayed in the terminal output. This makes it difficult for users to access their session data in the dashboard when running in debug mode.
Solution
Modified the code to use direct print() statements with the AgentOps formatting for session links instead of using logger.info(). This ensures that session links are always displayed regardless of the configured log level.
Changes were made in:
agentops/sdk/processors.py- For session start and end linksagentops/session.py- For session replay links
Related Issues
Fixes #825
Link to Devin run
https://app.devin.ai/sessions/31f73c2161fa43cb8f7fa62b73f5284e
Requested by: Alex
🤖 Devin AI Engineer
I'll be helping with this pull request! Here's what you should know:
✅ I will automatically:
- Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
- Look at CI failures and help fix them
Note: I can only respond to comments from users who have write access to this repository.
⚙️ Control Options:
- [ ] Disable automatic comment and CI monitoring