Differentiate between two log messages

This commit is contained in:
Dmytro Skarzhynets 2024-12-02 18:59:46 +02:00 committed by Dmytro Skarzhynets
parent 68aaf3c918
commit a5fb3ee15f

View File

@ -48,8 +48,8 @@ final class ThingsBoardScheduledThreadPoolExecutor extends ScheduledThreadPoolEx
}
}
if (directThrowable != null) {
log.error("Uncaught error occurred during task execution!", directThrowable);
if (directThrowable != null) { // should never be true since ScheduledThreadPoolExecutor wraps tasks in Future's
log.error("Caught direct throwable from task submitted to the scheduled thread pool executor!", directThrowable);
}
}