Skip to content
Snippets Groups Projects
Commit 8310482d authored by Jan Semmelink's avatar Jan Semmelink
Browse files

Remove call stack from error logs

parent 4445b89e
Branches
Tags
No related merge requests found
......@@ -36,11 +36,11 @@ func Fatal(args ...interface{}) {
}
func Errorf(format string, args ...interface{}) {
logger.WithFields(map[string]interface{}{"call_stack": errors.Stack(3)}).log(LevelError, 1, fmt.Sprintf(format, args...))
logger.log(LevelError, 1, fmt.Sprintf(format, args...))
}
func Error(args ...interface{}) {
logger.WithFields(map[string]interface{}{"call_stack": errors.Stack(3)}).log(LevelError, 1, fmt.Sprint(args...))
logger.log(LevelError, 1, fmt.Sprint(args...))
}
func Warnf(format string, args ...interface{}) {
......
......@@ -55,11 +55,11 @@ func (l Logger) Fatal(args ...interface{}) {
}
func (l Logger) Errorf(format string, args ...interface{}) {
l.WithFields(map[string]interface{}{"call_stack": errors.Stack(3)}).log(LevelError, 1, fmt.Sprintf(format, args...))
l.log(LevelError, 1, fmt.Sprintf(format, args...))
}
func (l Logger) Error(args ...interface{}) {
l.WithFields(map[string]interface{}{"call_stack": errors.Stack(3)}).log(LevelError, 1, fmt.Sprint(args...))
l.log(LevelError, 1, fmt.Sprint(args...))
}
func (l Logger) Warnf(format string, args ...interface{}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment