[slf4j-dev] [JIRA] (SLF4J-409) Logging null messages

QOS.CH (JIRA) noreply-jira at qos.ch
Thu Mar 22 17:27:00 CET 2018


     [ https://jira.qos.ch/browse/SLF4J-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gülcü resolved SLF4J-409.
------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.7.26)

Fixed in [commit 3e7e72|https://github.com/qos-ch/slf4j/commit/3e7e72e70b6f3d]


> Logging null messages
> ---------------------
>
>                 Key: SLF4J-409
>                 URL: https://jira.qos.ch/browse/SLF4J-409
>             Project: SLF4J
>          Issue Type: Bug
>          Components: jul-to-slf4j
>            Reporter: Devin Smith
>            Assignee: Ceki Gülcü
>            Priority: Minor
>             Fix For: 1.8.0-beta3
>
>
> Copied from message I sent to mailing list.
>  
> While searching through the logging framework(s) to see why something was being logged as it was, I came across some curious code (unrelated to my issue).
>  
> [https://github.com/qos-ch/slf4j/blob/1c6cbf05e6a99a8805397d1c06008021fdc96527/jul-to-slf4j/src/main/java/org/slf4j/bridge/SLF4JBridgeHandler.java#L294-L301]
>  
> While the comment seems valid, `message` is an otherwise unused local variable. If the comment is still relevant, and I'm not going crazy, I'm assuming it should instead be `record.setMessage("")`?
>  
> Cheers,
> -Devin



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list