-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive on matching log args #69
Comments
Mmh, I can't reproduce this one with: type MyEx () =
inherit System.Exception()
let testlog1 () =
use factory = LoggerFactory.Create(fun b -> b.AddConsole() |> ignore)
let log: ILogger = factory.CreateLogger("Program")
let e: MyEx = MyEx()
log.LogWarning(e, "Error: {Something}", 3) Or do you mean it should ignore missing args if the first arg inherits from exception, like: log.LogWarning(e, "Error: {Something}") // don't warn here |
Oh sorry, I'll try and reproduce it internally and get an exact repro out to you. |
Cool, thanks! |
@dawedawe sample to reproduce should be:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I observed today in GR that
GRA-LOGTEMPLMISSVALS-001
incorrectly fired on the following:Since the first argument inherits from
Exception
, it should be ignored for the purposes of this analyzer.The text was updated successfully, but these errors were encountered: