Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Enhance log report script: add error handling and logging (#2232)
* Update log_example_reports.py 1. Added logging: Imported the logging module and set up a logger in the main function. This allows for better error tracking and debugging. 2. Improved file reading: Used a with statement to ensure the file is properly closed after reading. Also added error handling to catch and log any issues when reading the file. 3. Error handling for Slack SDK import: Added a try-except block to handle cases where the slack_sdk might not be installed. 4. Enhanced Slack message sending: Added error handling and logging for the Slack message sending process. This will help identify any issues with the Slack integration. * style * Update log_reports.py 1. Logging: Added logging to track errors and important events. 2. Error Handling: Wrapped the log file processing in a try-except block to handle potential errors gracefully. 3. Logging Total Failed Tests: Added a log statement to report the total number of failed tests * style * further improve --------- Co-authored-by: Quentin Gallouédec <[email protected]> Co-authored-by: Quentin Gallouédec <[email protected]>
- Loading branch information