mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-17 01:30:03 +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.FuncName = funcName
|
||||||
funcInfo.Err = err
|
funcInfo.Err = err
|
||||||
funcInfo.LogLevel = logLevel
|
funcInfo.LogLevel = logLevel
|
||||||
_, file, line, _ := runtime.Caller(0)
|
_, file, line, _ := runtime.Caller(2)
|
||||||
var s string
|
var s string
|
||||||
i := strings.SplitAfter(file, "/")
|
i := strings.SplitAfter(file, "/")
|
||||||
if len(i) > 3 {
|
if len(i) > 3 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user