Refactor: Logging Cleanup
This commit is contained in:
parent
7a9a149955
commit
5176f99ba7
9 changed files with 37 additions and 72 deletions
|
@ -400,7 +400,33 @@ core/
|
|||
- [ ] Test stream interruption handling
|
||||
- [ ] Test concurrent subscription management
|
||||
|
||||
### 6.5 Final Cleanup
|
||||
### 6.5 Logging Optimization & Cleanup ✅
|
||||
- ✅ **Removed Debug Frame Saving**
|
||||
- ✅ Removed hard-coded debug frame saving in `core/detection/pipeline.py`
|
||||
- ✅ Removed hard-coded debug frame saving in `core/detection/branches.py`
|
||||
- ✅ Eliminated absolute debug paths for production use
|
||||
|
||||
- ✅ **Eliminated Test/Mock Functionality**
|
||||
- ✅ Removed `save_frame_for_testing` function from `core/streaming/buffers.py`
|
||||
- ✅ Removed `save_test_frames` configuration from `StreamConfig`
|
||||
- ✅ Cleaned up test frame saving calls in stream manager
|
||||
- ✅ Updated module exports to remove test functions
|
||||
|
||||
- ✅ **Reduced Verbose Logging**
|
||||
- ✅ Commented out verbose frame storage logging (every frame)
|
||||
- ✅ Converted debug-level info logs to proper debug level
|
||||
- ✅ Reduced repetitive frame dimension logging
|
||||
- ✅ Maintained important model results and detection confidence logging
|
||||
- ✅ Kept critical pipeline execution and error messages
|
||||
|
||||
- ✅ **Production-Ready Logging**
|
||||
- ✅ Clean startup and initialization messages
|
||||
- ✅ Clear model loading and pipeline status
|
||||
- ✅ Preserved detection results with confidence scores
|
||||
- ✅ Maintained session management and tracking messages
|
||||
- ✅ Kept important error and warning messages
|
||||
|
||||
### 6.6 Final Cleanup
|
||||
- [ ] Remove any remaining duplicate code
|
||||
- [ ] Optimize imports across all modules
|
||||
- [ ] Clean up temporary files and debugging code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue