for InvocationTargetException the get stacktrace has changed from getTargetException() to getCause()
I changed the jdk from zulu to temurin and my stacktraces are lost. getTargetException() just gives me the exception message, not the stacktrace anymore.
With the new implementation the caused by it logged twice now. I am afraid to remove the \ntarget: {} part that in some cases the caused by stacktrace isn't printed anymore in some jdk versions.
for InvocationTargetException the get stacktrace has changed from getTargetException() to getCause() I changed the jdk from zulu to temurin and my stacktraces are lost. getTargetException() just gives me the exception message, not the stacktrace anymore. With the new implementation the caused by it logged twice now. I am afraid to remove the
\ntarget: {}
part that in some cases the caused by stacktrace isn't printed anymore in some jdk versions.