Skip to content

Commit

Permalink
Fix lib.ErrorLogWithError: properly pass in args (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx authored Apr 1, 2024
1 parent 363d9f4 commit a91c1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/lib/log/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func DebugLog(ctx sdk.Context, msg string, keyvals ...interface{}) {
// as well as attaching the error object to the log for datadog error tracking.
// `keyvals` should be even number in length and be of alternating types (string, interface{}).
func ErrorLogWithError(ctx sdk.Context, msg string, err error, keyvals ...interface{}) {
ctx.Logger().Error(msg, append(keyvals, Error, err))
ctx.Logger().Error(msg, append(keyvals, Error, err)...)
}

// ErrorLog reports msg as a error log. It constructs an error object on the fly with
Expand Down

0 comments on commit a91c1ca

Please sign in to comment.