Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: go/src/infra/monitoring/analyzer/analyzer.go

Issue 1149313002: go: Replace Logrus with go-logging. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: typo Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/libs/logging/logrus_test.go ('k') | go/src/infra/monitoring/client/client.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monitoring/analyzer/analyzer.go
diff --git a/go/src/infra/monitoring/analyzer/analyzer.go b/go/src/infra/monitoring/analyzer/analyzer.go
index 886223b87bebb3cd4245b8c1271df6691c6359aa..d0737c36da422646ca7407f352a2c9fde5d5f0ef 100644
--- a/go/src/infra/monitoring/analyzer/analyzer.go
+++ b/go/src/infra/monitoring/analyzer/analyzer.go
@@ -14,7 +14,7 @@ import (
"sync"
"time"
- "github.com/Sirupsen/logrus"
+ "infra/libs/logging"
"infra/monitoring/client"
"infra/monitoring/messages"
@@ -34,7 +34,7 @@ const (
)
var (
- log = logrus.New()
+ log = logging.DefaultLogger
)
var (
@@ -747,7 +747,7 @@ func (a *MasterAnalyzer) stepFailureAlerts(failures []stepFailure) ([]messages.A
alr.Key = alertKey(f.masterName, f.builderName, f.step.Name)
if len(bf.Reasons) == 0 {
- log.Warnf("No reasons for step failure: %s", alr.Key)
+ log.Warningf("No reasons for step failure: %s", alr.Key)
bf.Reasons = append(bf.Reasons, messages.Reason{
Step: f.step.Name,
URL: f.URL(),
@@ -826,7 +826,7 @@ func (a *MasterAnalyzer) excludeFailure(master, builder, step string) bool {
bc, ok := mc.Builders[builder]
if !ok {
if bc, ok = mc.Builders["*"]; !ok {
- log.Warnf("Unknown %s builder %s", master, builder)
+ log.Warningf("Unknown %s builder %s", master, builder)
return true
}
}
« no previous file with comments | « go/src/infra/libs/logging/logrus_test.go ('k') | go/src/infra/monitoring/client/client.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698