* cleanup logging

This commit is contained in:
Reinhard Pointner 2011-09-15 07:10:28 +00:00
parent b5438e22a2
commit bbee491b38
1 changed files with 3 additions and 3 deletions

View File

@ -260,10 +260,9 @@ public class ArgumentProcessor {
outputFormat = getSubtitleFormatByName(output); outputFormat = getSubtitleFormatByName(output);
// when rewriting subtitles to target format an encoding must be defined, default to UTF-8 // when rewriting subtitles to target format an encoding must be defined, default to UTF-8
if (outputEncoding == null) if (outputEncoding == null) {
outputEncoding = Charset.forName("UTF-8"); outputEncoding = Charset.forName("UTF-8");
}
CLILogger.config(format("Export as: %s (%s)", outputFormat, outputEncoding.displayName(Locale.ROOT)));
} }
// lookup subtitles by hash // lookup subtitles by hash
@ -354,6 +353,7 @@ public class ArgumentProcessor {
ext = outputFormat.getFilter().extension(); // adjust extension of the output file ext = outputFormat.getFilter().extension(); // adjust extension of the output file
} }
CLILogger.finest(format("Export [%s] as: %s / %s", subtitleFile.getName(), outputFormat, outputEncoding.displayName(Locale.ROOT)));
data = exportSubtitles(subtitleFile, outputFormat, 0, outputEncoding); data = exportSubtitles(subtitleFile, outputFormat, 0, outputEncoding);
} }