Github user cakofony commented on a diff in the pull request:

    https://github.com/apache/logging-log4j2/pull/148#discussion_r167942134
  
    --- Diff: 
log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java
 ---
    @@ -55,7 +55,7 @@ public void formatTo(final StringBuilder buffer) {
          */
         @Override
         public String getFormat() {
    -        return getFormattedMessage();
    +        return obj instanceof String ? (String) obj : null;
    --- End diff --
    
    I think `return "{}"` makes more sense here. Thoughts?


---

Reply via email to