Skip to content
Snippets Groups Projects
Commit cc7c04c1 authored by Christel Loftus's avatar Christel Loftus
Browse files

revert ErrorWithMsg

parent 01d34904
No related branches found
No related tags found
1 merge request!54Error msg to support formatting
......@@ -242,13 +242,11 @@ func ErrorWithFields(fields map[string]interface{}, err error) {
}
}
func ErrorWithMsg(format string, err error, a ...interface{}) {
func ErrorWithMsg(message string, err error) {
if disableLogging {
return
}
message := SanitiseLogs(fmt.Sprintf(format, a...))
if err == nil {
err = errors.Error(message)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment