Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #86 from chuckha/logging-panic
Browse files Browse the repository at this point in the history
Fix logging panic
  • Loading branch information
k8s-ci-robot authored Jul 15, 2019
2 parents bc3c292 + 26e9904 commit 3d528c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ type Log struct {
}

func (k Log) Error(err error, msg string, keysAndValues ...interface{}) {
k.Logger.Error(err, msg, "stacktrace", fmt.Sprintf("%+v", err), keysAndValues)
keysAndValues = append(keysAndValues, "stacktrace", fmt.Sprintf("%+v", err))
k.Logger.Error(err, msg, keysAndValues...)
}

0 comments on commit 3d528c1

Please sign in to comment.