You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(logging): enhance error handling and logging in main worker
- Introduced `DefaultLogger` for consistent error logging in the main worker script.
- Updated `handleRunError` to utilize the logger for error messages and added a delay before exiting the process.
- Refactored the `run` function to simplify its return statement.
- Enhanced unit tests to verify the new logging behavior and ensure proper process exit.
These changes improve the clarity and reliability of error handling in the application, ensuring that errors are logged consistently and the process exits gracefully.
0 commit comments