Commit 8d63648a352543f3bc1a23d8a73dfcbe25ebe123
1 parent
d9c0226889
Exists in
master
CallerFilenameAndLineNumber()
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
main.go
... | ... | @@ -91,7 +91,7 @@ func (l *Logger) Print(format string, v ...interface{}) { |
91 | 91 | |
92 | 92 | // CallerFilenameAndLineNumber ... |
93 | 93 | func CallerFilenameAndLineNumber() (string, int) { |
94 | - _, path, line, _ := runtime.Caller(1) | |
94 | + _, path, line, _ := runtime.Caller(2) | |
95 | 95 | file := filepath.Base(path) |
96 | 96 | return file, line |
97 | 97 | } | ... | ... |