Removing unneeded exception handling
@@ -155,15 +155,11 @@ public class LoggingOutInterceptor extends AbstractLoggingInterceptor {
private String getPayload(final LogEvent event, StringWriter w2) {
StringBuilder payload = new StringBuilder();
- try {
writePayload(payload, w2, event);
- } catch (Exception ex) {
- // ignore
- }
return payload.toString();
}
- protected void writePayload(StringBuilder builder, StringWriter stringWriter, LogEvent event) throws Exception {
+ private void writePayload(StringBuilder builder, StringWriter stringWriter, LogEvent event) {
StringBuffer buffer = stringWriter.getBuffer();
if (buffer.length() > lim) {
builder.append(buffer.subSequence(0, lim));
