You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2017/12/06 19:22:01 UTC

[jira] [Commented] (LOG4J2-2144) Logger does not print message in case if stacktrace is empty for Throwable

    [ https://issues.apache.org/jira/browse/LOG4J2-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280733#comment-16280733 ] 

Mikael Ståldal commented on LOG4J2-2144:
----------------------------------------

I am not sure I fully understand the problem. Can you provide some code/configuration to demonstrate it? Preferably as a failing unit test. 

> Logger does not print message in case if stacktrace is empty for Throwable
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-2144
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2144
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Prabhu Joseph
>
> There are user defined exceptions which does not print stack trace for security purposes. In this case, Logger render method will return empty stack trace. We can return the Throwable message if stacktrace is empty while logging the exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)