You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/11/30 11:28:11 UTC

[GitHub] [ignite] dmekhanikov commented on a change in pull request #8283: IGNITE-13487 Move logging of delegated errors to debug level.

dmekhanikov commented on a change in pull request #8283:
URL: https://github.com/apache/ignite/pull/8283#discussion_r532527578



##########
File path: modules/core/src/main/java/org/apache/ignite/internal/processors/job/GridJobWorker.java
##########
@@ -484,7 +483,8 @@ boolean initialize(GridDeployment dep, Class<?> taskCls) {
             job = SecurityUtils.sandboxedProxy(ctx, ComputeJob.class, job);
         }
         catch (IgniteCheckedException e) {
-            U.error(log, "Failed to initialize job [jobId=" + ses.getJobId() + ", ses=" + ses + ']', e);
+            if (log.isDebugEnabled())
+                U.error(log, "Failed to initialize job [jobId=" + ses.getJobId() + ", ses=" + ses + ']', e);

Review comment:
       There is no implementation of `log.debug` that accepts exceptions. Is there a good way to print stacktraces to log in debug level?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org