kalibrado / trailer-finder

Trailer Finder is a tool that automatically searches and downloads movie trailers for your media collection. It integrates with media management tools like Radarr and Sonarr to keep your trailers up-to-date.
MIT License
15 stars 0 forks source link

Enhancements to Logging Module: Parameter Validation, Exception Handling, and Performance Optimization #35

Closed kalibrado closed 1 month ago

kalibrado commented 1 month ago

Overall Objective: We have reviewed and enhanced the logging module to optimize its performance, improve robustness, and ensure better system resource management while preserving the functionality of color-coded logging and file rotation support.

1. Constructor Argument Validation:

2. Exception Handling for File Handler:

3. CPU Load Management with Pause:

4. General Improvements: