[slf4j-dev] Logging null messages

Devin Smith thundza at gmail.com
Tue May 23 20:12:02 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20170523/d296d296/attachment.html>


More information about the slf4j-dev mailing list