Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
MarkerLoggingAdapter's error method eating cause parameters #22324
Comments
|
Did you configure your logger implementation to include the markers in its output (described in the docs for SLF4J here: http://doc.akka.io/docs/akka/2.4.17/scala/logging.html#Using_Markers)? |
sumnulu
commented
Feb 17, 2017
•
|
Yes I have. It is logging the markers but not the exception. If I use ActorLogging logback is logging the exception without any problem. The problem is I think the MarkerLoggingAdapter does not using the cause parameter in the error method's body and just ignoring it. (see my previous comment's first snippet (it is the source code of akka) ) My logsback.xml pattern is like this one: <pattern>%date{HH:mm:ss} %highlight(%-5level) %boldYellow(%marker) %magenta(%logger{30}) %boldGreen(%X{peerId}) - %msg %ex%n</pattern> |
|
@sumnulu I agree, this is an oversight. It doesn't pass on the |
sumnulu
commented
Feb 20, 2017
|
@patriknw ok, I will. |
johanandren
added 1 - triaged 3 - in progress community and removed 1 - triaged
labels
Feb 20, 2017
|
thanks |
johanandren
added 1 - triaged t:core and removed 3 - in progress
labels
Jun 7, 2017
|
That is solved as part as #23109. |
jrudolph
added 3 - in progress and removed 1 - triaged
labels
Jun 7, 2017
raboof
was assigned
by jrudolph
Jun 7, 2017
jrudolph
referenced
this issue
Jun 7, 2017
Merged
Log fatal errors to stderr, add exceptions to 'marked' errors #23109
raboof
closed this
Jun 7, 2017
|
@raboof I think this is serious enough to warrant a backport to 2.4 (and don't forget to set the milestone) |
sumnulu commentedFeb 15, 2017
•
edited
akka.event.MarkerLoggingAdapter does not using cause parameter of the error methods.
akka version = 2.4.16
example :