View | Details | Raw Unified | Return to bug 53948
Collapse All | Expand All

(-)src/main/java/org/apache/log4j/pattern/ThrowableInformationPatternConverter.java (-5 / +2 lines)
Lines 18-24 Link Here
18
package org.apache.log4j.pattern;
18
package org.apache.log4j.pattern;
19
19
20
import org.apache.log4j.spi.LoggingEvent;
20
import org.apache.log4j.spi.LoggingEvent;
21
import org.apache.log4j.spi.ThrowableInformation;
22
21
23
22
24
/**
23
/**
Lines 78-88 public class ThrowableInformationPatternConverter Link Here
78
   */
77
   */
79
  public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
78
  public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
80
    if (maxLines != 0) {
79
    if (maxLines != 0) {
81
      ThrowableInformation information = event.getThrowableInformation();
80
      String[] stringRep = event.getThrowableStrRep();
82
83
      if (information != null) {
84
        String[] stringRep = information.getThrowableStrRep();
85
81
82
      if (stringRep != null) {
86
        int length = stringRep.length;
83
        int length = stringRep.length;
87
        if (maxLines < 0) {
84
        if (maxLines < 0) {
88
            length += maxLines;
85
            length += maxLines;

Return to bug 53948