Alerting: Logs should not be capitalized and the errors key should be "err" (#50333)

* Alerting: decapitalize log lines and use "err" as the key for errors

Found using (logger|log).(Warn|Debug|Info|Error)\([A-Z] and (logger|log).(Warn|Debug|Info|Error)\(.+"error"
This commit is contained in:
gotjosh
2022-06-07 19:54:23 +02:00
committed by GitHub
parent af841a79ae
commit 0cde283505
25 changed files with 88 additions and 77 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ func (srv PrometheusSrv) RouteGetRuleStatuses(c *models.ReqContext) response.Res
}
if len(namespaceMap) == 0 {
srv.log.Debug("User does not have access to any namespaces")
srv.log.Debug("user does not have access to any namespaces")
return response.JSON(http.StatusOK, ruleResponse)
}