pull/168/head
Gordon 3 years ago
parent eb1e596cde
commit 1bcd2d4531

@ -30,7 +30,7 @@ func (f *fileHook) Levels() []logrus.Level {
func (f *fileHook) Fire(entry *logrus.Entry) error {
var s string
_, b, c, _ := runtime.Caller(8)
_, b, c, _ := runtime.Caller(10)
i := strings.SplitAfter(b, "/")
if len(i) > 3 {
s = i[len(i)-3] + i[len(i)-2] + i[len(i)-1] + ":" + utils.IntToString(c)

Loading…
Cancel
Save