Send key while logging error msg

This commit is contained in:
atvanguard 2020-03-06 16:00:04 +05:30
parent 15b162b450
commit 5f96b06add
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}
}

View file

@ -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