[ 
https://issues.apache.org/jira/browse/BEAM-10953?focusedWorklogId=490422&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-490422
 ]

ASF GitHub Bot logged work on BEAM-10953:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Sep/20 21:07
            Start Date: 24/Sep/20 21:07
    Worklog Time Spent: 10m 
      Work Description: ibzib commented on pull request #12907:
URL: https://github.com/apache/beam/pull/12907#issuecomment-698588738


   Looks like someone made an SLF4J plugin for errorprone: 
https://github.com/KengoTODA/errorprone-slf4j
   
   I've gotten it hooked up so now I'll see about fixing all the errors (there 
are others besides just the placeholder thing).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 490422)
    Time Spent: 50m  (was: 40m)

> Logging placeholder mismatches should be disallowed.
> ----------------------------------------------------
>
>                 Key: BEAM-10953
>                 URL: https://issues.apache.org/jira/browse/BEAM-10953
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Kyle Weaver
>            Priority: P2
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> slf4j Logger has overloaded methods for each severity level:
>     public void warn(String format, Object... arguments);
>     public void warn(String msg, Throwable t);
> These two signatures are often confused:
>     LOG.warn("foo {}", new Exception("bar"));
> This example does not print "foo bar" or anything like one would expect. 
> Instead, "foo {}" (without any substitution). This often confuses Dataflow 
> users.
> This pattern can be statically checked in Intellij. We should figure out how 
> to enable similar checks using our existing static analysis tooling (perhaps 
> errorprone?)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to