[
https://issues.apache.org/jira/browse/IGNITE-22634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mirza Aliev updated IGNITE-22634:
---------------------------------
Description:
We've noticed that construction like this does not work as we expected:
{code:java}
Throwable e = new IgniteInternalException(INTERNAL_ERR, "Expected
message");
log.info("SOME MESSAGE", e);
log.warn("SOME MESSAGE", e);
log.error("SOME MESSAGE", e);
{code}
Expected behaviour:
We see in logs traceId and code of the {{IgniteInternalException}}
Actual behaviour:
{code:java}
[2024-07-01T16:35:11,435][INFO ][main][CommonsTest] SOME MESSAGE
org.apache.ignite.internal.lang.IgniteInternalException: Expected message
...
[2024-07-01T16:35:11,445][WARN ][main][CommonsTest] SOME MESSAGE
org.apache.ignite.internal.lang.IgniteInternalException: Expected message
...
[2024-07-01T16:35:11,446][ERROR][main][CommonsTest] SOME MESSAGE
org.apache.ignite.internal.lang.IgniteInternalException: Expected message
{code}
was:
We've noticed that construction like this does not work as we expected:
{code:java}
Throwable e = new IgniteInternalException(INTERNAL_ERR, "Expected
message");
log.info("SOME MESSAGE", e);
log.warn("SOME MESSAGE", e);
log.error("SOME MESSAGE", e);
{code}
Expected behaviour:
We see in logs traceId and code of the {{IgniteInternalException}}
Actual behaviour:
> IgniteLogger does not print traceId and code for TraceableException
> --------------------------------------------------------------------
>
> Key: IGNITE-22634
> URL: https://issues.apache.org/jira/browse/IGNITE-22634
> Project: Ignite
> Issue Type: Bug
> Reporter: Mirza Aliev
> Priority: Major
> Attachments: screenshot-1.png
>
>
> We've noticed that construction like this does not work as we expected:
> {code:java}
> Throwable e = new IgniteInternalException(INTERNAL_ERR, "Expected
> message");
> log.info("SOME MESSAGE", e);
> log.warn("SOME MESSAGE", e);
> log.error("SOME MESSAGE", e);
> {code}
> Expected behaviour:
> We see in logs traceId and code of the {{IgniteInternalException}}
> Actual behaviour:
> {code:java}
> [2024-07-01T16:35:11,435][INFO ][main][CommonsTest] SOME MESSAGE
> org.apache.ignite.internal.lang.IgniteInternalException: Expected message
> ...
> [2024-07-01T16:35:11,445][WARN ][main][CommonsTest] SOME MESSAGE
> org.apache.ignite.internal.lang.IgniteInternalException: Expected message
> ...
> [2024-07-01T16:35:11,446][ERROR][main][CommonsTest] SOME MESSAGE
> org.apache.ignite.internal.lang.IgniteInternalException: Expected message
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)