diff --git a/consensus/bor/rest.go b/consensus/bor/rest.go index 37a7b12e2df69f29ca28298a2d22fafb1e6e2716..a31295913286f9e7cbe47fbc817ef8442e3b86fa 100644 --- a/consensus/bor/rest.go +++ b/consensus/bor/rest.go @@ -65,7 +65,7 @@ func FetchFromHeimdallWithRetry(client http.Client, urlString string, paths ...s if err == nil && res != nil { return res, nil } - log.Info("Retrying again in 5 seconds for next Heimdall span", u.Path) + log.Info("Retrying again in 5 seconds for next Heimdall span", "path", u.Path) time.Sleep(5 * time.Second) } } diff --git a/log/logger.go b/log/logger.go index 874dc2f56ee7cae00dbb2c593b853652db5bc7f6..ca3e0b05996eb5e9fa372bf05fb55915cca9dd48 100644 --- a/log/logger.go +++ b/log/logger.go @@ -207,7 +207,7 @@ func normalize(ctx []interface{}) []interface{} { // that things are the right length and users can fix bugs // when they see the output looks wrong if len(ctx)%2 != 0 { - ctx = append(ctx, nil) + ctx = append(ctx, nil, errorKey, "Normalized odd number of arguments by adding nil") } return ctx