mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
log
This commit is contained in:
parent
eb1e596cde
commit
1bcd2d4531
@ -30,7 +30,7 @@ func (f *fileHook) Levels() []logrus.Level {
|
|||||||
|
|
||||||
func (f *fileHook) Fire(entry *logrus.Entry) error {
|
func (f *fileHook) Fire(entry *logrus.Entry) error {
|
||||||
var s string
|
var s string
|
||||||
_, b, c, _ := runtime.Caller(8)
|
_, b, c, _ := runtime.Caller(10)
|
||||||
i := strings.SplitAfter(b, "/")
|
i := strings.SplitAfter(b, "/")
|
||||||
if len(i) > 3 {
|
if len(i) > 3 {
|
||||||
s = i[len(i)-3] + i[len(i)-2] + i[len(i)-1] + ":" + utils.IntToString(c)
|
s = i[len(i)-3] + i[len(i)-2] + i[len(i)-1] + ":" + utils.IntToString(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user