ygerzhedovich commented on code in PR #933:
URL: https://github.com/apache/ignite-3/pull/933#discussion_r916855002


##########
modules/core/src/main/java/org/apache/ignite/internal/util/worker/IgniteWorker.java:
##########
@@ -109,16 +107,14 @@ public final void run() {
 
             body();
         } catch (InterruptedException e) {
-            if (log.isDebugEnabled()) {
-                log.debug("Caught interrupted exception: " + e);
-            }
+            log.debug("Caught interrupted exception", e);
 
             Thread.currentThread().interrupt();
         } catch (Throwable e) {
             // Catch everything to make sure that it gets logged properly and
             // not to kill any threads from the underlying thread pool.
 
-            log.error("Runtime error caught during ignite runnable execution: 
" + this, e);
+            log.warn("Runtime error caught during ignite runnable execution 
[worker={}]", this, e);

Review Comment:
   seems need to exchange 'this' and 'e' parameters



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to