In certain environments, failed queries are expected and should not appear in a log file. Please add the feature to use SlowQueryReport for logging slow queries without reporting failed queries. (or refactor the SlowQueryReport to split the responsible code to a FailedQueryReport)
Fixed in r161657
Fixed in r1616570
amended in r1616761