diff --git a/metadata-utils/src/main/java/com/linkedin/metadata/utils/log/LogMessageFilter.java b/metadata-utils/src/main/java/com/linkedin/metadata/utils/log/LogMessageFilter.java index a48b529007757d..3750c0ae0bc4ad 100644 --- a/metadata-utils/src/main/java/com/linkedin/metadata/utils/log/LogMessageFilter.java +++ b/metadata-utils/src/main/java/com/linkedin/metadata/utils/log/LogMessageFilter.java @@ -25,9 +25,12 @@ public FilterReply decide(ILoggingEvent event) { final String formattedMessage = event.getFormattedMessage(); final IThrowableProxy throwableProxy = event.getThrowableProxy(); - String throwableString = null; + + String throwableString; if (throwableProxy != null) { throwableString = ThrowableProxyUtil.asString(throwableProxy); + } else { + throwableString = null; } if (this.excluded.stream()