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

Commit

Permalink
Fix logging panic
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <chuckh@vmware.com>
  • Loading branch information
chuckha committed Jul 15, 2019
1 parent bc3c292 commit 26e9904
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 26e9904

Please sign in to comment.