Skip to content

Commit 0fd86cb

Browse files
author
Alex Levinson
committed
fixing logger
1 parent 8f19638 commit 0fd86cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (g *GSEFormatter) Format(entry *logrus.Entry) ([]byte, error) {
9393
deleteTrace = true
9494
if val == "true" {
9595
buffer.WriteString(" ")
96-
if pc, file, line, ok := runtime.Caller(4); ok {
96+
if pc, file, line, ok := runtime.Caller(5); ok {
9797
fName := runtime.FuncForPC(pc).Name()
9898
baseFile := path.Base(file)
9999
buffer.WriteString(fmt.Sprintf("func=%s source=%s:%s", color.GreenString(fName), color.GreenString(baseFile), color.GreenString("%d", line)))

0 commit comments

Comments
 (0)