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

Fix logging panic #86

Merged
merged 1 commit into from
Jul 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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...)
}