mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-04 23:09:34 +08:00
log
This commit is contained in:
parent
8be1ee90f6
commit
57928f900e
@ -179,7 +179,7 @@ func SetContextInfo(ctx context.Context, funcName string, logLevel logrus.Level,
|
||||
funcInfo.FuncName = funcName
|
||||
funcInfo.Err = err
|
||||
funcInfo.LogLevel = logLevel
|
||||
_, file, line, _ := runtime.Caller(0)
|
||||
_, file, line, _ := runtime.Caller(2)
|
||||
var s string
|
||||
i := strings.SplitAfter(file, "/")
|
||||
if len(i) > 3 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user