Skip to content

Commit

Permalink
Remove linefeeds from log messages (#1374)
Browse files Browse the repository at this point in the history
It's unnecessary and adds an annoying blank line to the output. :P
  • Loading branch information
adrcunha authored and google-prow-robot committed Jun 27, 2018
1 parent af94627 commit 772ed64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/conformance/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func assertResourcesUpdatedWhenRevisionIsReady(t *testing.T, logger *zap.Sugared
return c.Status.LatestReadyRevisionName == names.Revision, nil
})
if err != nil {
t.Fatalf("The Configuration %s was not updated indicating that the Revision %s was ready: %v\n", names.Config, names.Revision, err)
t.Fatalf("The Configuration %s was not updated indicating that the Revision %s was ready: %v", names.Config, names.Revision, err)
}
logger.Infof("Updates the Route to route traffic to the Revision")
err = test.CheckRouteState(clients.Routes, names.Route, test.AllRouteTrafficAtRevision(names.Route, names.Revision))
Expand Down
6 changes: 3 additions & 3 deletions test/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ var once sync.Once

func initSeed(logger *zap.SugaredLogger) func() {
return func() {
seed := time.Now().UTC().UnixNano()
logger.Infof("Seeding rand.Rand with %v\n", seed)
r = rand.New(rand.NewSource(seed))
seed := time.Now().UTC().UnixNano()
logger.Infof("Seeding rand.Rand with %v", seed)
r = rand.New(rand.NewSource(seed))
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func waitForRequestToDomainState(logger *zap.SugaredLogger, address string, spoo
if resp.StatusCode != 200 {
for _, code := range retryableCodes {
if resp.StatusCode == code {
logger.Infof("Retrying for code %v\n", resp.StatusCode)
logger.Infof("Retrying for code %v", resp.StatusCode)
return false, nil
}
}
Expand Down

0 comments on commit 772ed64

Please sign in to comment.