Skip to content

Commit

Permalink
'#1267: change logging level to warn, minor change to close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Mar 13, 2023
1 parent ad7c516 commit 8351a84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ protected static Collection<File> getAudioSplits(File inFile, String itemPath) {
File splitFile = new File(String.format("%s%03d.wav", outFile.getAbsolutePath(), ++seq));
splitFiles.add(splitFile);
AudioSystem.write(aOut, AudioFileFormat.Type.WAVE, splitFile);
aOut.close();
IOUtil.closeQuietly(aOut);
}
} catch (Exception e) {
LOGGER.error("Failed to split audio file: " + itemPath, e);
LOGGER.warn("Failed to split audio file: " + itemPath, e);
} finally {
IOUtil.closeQuietly(aOut);
IOUtil.closeQuietly(aIn);
Expand Down

0 comments on commit 8351a84

Please sign in to comment.