You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/09/29 14:48:53 UTC
[GitHub] [maven-mvnd] oehme opened a new issue, #696: SimpleAppender omits stacktraces
oehme opened a new issue, #696:
URL: https://github.com/apache/maven-mvnd/issues/696
The [SimpleAppender](https://github.com/apache/maven-mvnd/blob/874e26cfe829b35ad6b510fe398939ed26eb3a66/daemon/src/main/java/org/mvndaemon/mvnd/logging/internal/SimpleAppender.java#L45) is designed to work like slf4j-simple, but it does not print any stacktraces. This is because it uses an unitialized `ThrowableProxyConverter`. This class has a `lengthOption` setting, which is 0 after instantiation, meaning that it will print 0 stack frames. This field is initialized to Integer.MAX_VALUE in the converter's [start method](https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/pattern/ThrowableProxyConverter.java#L51), which is assumed to be called before it is used.
My suggestion would be to use [ThrowableProxyUtil.asString](https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/spi/ThrowableProxyUtil.java#L76) instead.
--
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: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [maven-mvnd] ppalaga commented on issue #696: SimpleAppender omits stacktraces
Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #696:
URL: https://github.com/apache/maven-mvnd/issues/696#issuecomment-1263341366
Thanks for the report and suggestion, @oehme. Would you like to send a PR by any chance?
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [maven-mvnd] oehme commented on issue #696: SimpleAppender omits stacktraces
Posted by GitBox <gi...@apache.org>.
oehme commented on issue #696:
URL: https://github.com/apache/maven-mvnd/issues/696#issuecomment-1265492989
Thanks for fixing this so quickly!
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [maven-mvnd] gnodet closed issue #696: SimpleAppender omits stacktraces
Posted by GitBox <gi...@apache.org>.
gnodet closed issue #696: SimpleAppender omits stacktraces
URL: https://github.com/apache/maven-mvnd/issues/696
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org