forked from j62/ctbrec
Add logging for unexpected errors
This commit is contained in:
parent
88a6ab3a91
commit
ee3ae3ef43
|
@ -68,6 +68,8 @@ public class PlaylistGenerator {
|
|||
} catch(Exception e) {
|
||||
LOG.warn("Couldn't determine duration for {}. Skipping this file.", file.getName());
|
||||
file.renameTo(new File(directory, file.getName()+".corrupt"));
|
||||
} catch(Throwable t) {
|
||||
LOG.error("Unexpected error", t);
|
||||
}
|
||||
done++;
|
||||
double percentage = (double)done / (double) total;
|
||||
|
|
Loading…
Reference in New Issue