[jboss-jira] [JBoss JIRA] (JBLOGGING-105) Exceptions logged via an ExtLogRecord are missing embedded newlines
mitchell bass (JIRA)
issues at jboss.org
Wed Jun 18 14:29:24 EDT 2014
mitchell bass created JBLOGGING-105:
---------------------------------------
Summary: Exceptions logged via an ExtLogRecord are missing embedded newlines
Key: JBLOGGING-105
URL: https://issues.jboss.org/browse/JBLOGGING-105
Project: JBoss Logging
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jboss-logging-logmanager
Affects Versions: 3.2.0.Beta1
Environment: windows 7, eap 6.2
Reporter: mitchell bass
Assignee: James Perkins
Priority: Trivial
when logging using an ExtLogRecord that contains a Throwable from a Class that has no package(default package), the stack trace was missing newlines.
bug is in org.jboss.logmanager.formatters.Formatters.java in the method:
private void renderExtended(final StringBuilder builder, final StackTraceElement element, final Map<String, String> cache)
lines 418 -> 420 are:
if (dotIdx == -1) {
return;
}
which allows the routine to return without appending a newline... it might be changed to:
if (dotIdx == -1) {
builder.append(NEW_LINE);
return;
}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list