util: use error log level for exception loggers
This commit is contained in:
@@ -43,7 +43,7 @@ public class CallableExceptionLogger<V> implements Callable<V>
|
|||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Throwable ex)
|
||||||
{
|
{
|
||||||
log.warn("Uncaught exception in callable {}", callable, ex);
|
log.error("Uncaught exception in callable {}", callable, ex);
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class RunnableExceptionLogger implements Runnable
|
|||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Throwable ex)
|
||||||
{
|
{
|
||||||
log.warn("Uncaught exception in runnable {}", runnable, ex);
|
log.error("Uncaught exception in runnable {}", runnable, ex);
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user