Skip to content

Commit b8db96f

Browse files
committed
format
1 parent 1c6f064 commit b8db96f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java-sdk-logging/logback-extension/src/main/java/com/google/api/logging/SDKLoggingMdcJsonProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public void writeTo(JsonGenerator generator, ILoggingEvent event) throws IOExcep
5858
// 1. key or value is null
5959
// 2. includeMdcKeyNames is not empty and the key is not in the list
6060
// 3. excludeMdcKeyNames is not empty and the key is in the list
61-
if (fieldName == null || entryValueString == null
61+
if (fieldName == null
62+
|| entryValueString == null
6263
|| !(getIncludeMdcKeyNames().isEmpty() || getIncludeMdcKeyNames().contains(fieldName))
6364
|| (!getExcludeMdcKeyNames().isEmpty() && getExcludeMdcKeyNames().contains(fieldName))) {
6465
continue;

0 commit comments

Comments
 (0)