-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(audioconv): Ensure error logging works on
quiet
enabled
- Refactored `writeErrorLog` to return a promise, improving error handling when writing to the log file. - Updated the error handling within `convertAudio` to ensure that error logs are written even when the `quiet` option is enabled (set to `true`). - Refined log and console error outputs to make them conditional on the `quiet` option, improving clarity and control over error reporting. - Added better handling for the log stream, including resolving on `finish` and rejecting on `error` to ensure reliability in the logging process.
- Loading branch information
Showing
1 changed file
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters