Update DetectorResource.java
log down all the exceptions, otherwise, no exception information in the log
@@ -73,6 +73,9 @@ public class DetectorResource {
LOG.error("OOM while detecting: ({})", filename, e);
serverStatus.setStatus(ServerStatus.STATUS.ERROR);
throw e;
+ } catch (Throwable e){
+ LOG.error("Exception while detecting: ({})", filename, e);
+ throw e;
} finally {
serverStatus.complete(taskId);
}
