diff --git a/main.go b/main.go index fd18e31..52ae753 100644 --- a/main.go +++ b/main.go @@ -91,7 +91,7 @@ func (l *Logger) Print(format string, v ...interface{}) { // CallerFilenameAndLineNumber ... func CallerFilenameAndLineNumber() (string, int) { - _, path, line, _ := runtime.Caller(1) + _, path, line, _ := runtime.Caller(2) file := filepath.Base(path) return file, line }