Add debug logging to handle manager#876
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds DEBUG_MSG logging across HandleManager.cpp: on session/token object registration, object destruction (including missing-handle cases), session closure (early-return and success), batch session closure, and token logout, with per-object erasure logs. ChangesHandle Manager Debug Instrumentation
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/handle_mgr/HandleManager.cpp`:
- Around line 176-179: In HandleManager.cpp, update the diagnostic messages
emitted by DEBUG_MSG when handling hObject: change the first message to fix the
typo ("Destroyed object handle: %lu") and change the else-case to accurately
state the handle isn't an object (e.g., "Handle %lu exists but is not an object"
or "Handle %lu refers to a non-object"). Locate the DEBUG_MSG calls around the
destroy logic that reference hObject and replace the two strings accordingly so
they are precise and correctly spelled.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 93c3957f-2560-4623-b943-f673f069d713
📒 Files selected for processing (1)
src/lib/handle_mgr/HandleManager.cpp
This is to better track object handling
8ea0a2f to
e168155
Compare
|
Love to see this |
This is to better track object handling.
Summary by CodeRabbit