mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-15 23:29:23 +08:00
Merge remote-tracking branch 'origin/errcode' into errcode
This commit is contained in:
commit
44e6a5570e
@ -33,7 +33,7 @@ func init() {
|
||||
|
||||
func NewPrivateLog(moduleName string) {
|
||||
logger = loggerInit(moduleName)
|
||||
ctxLogger = loggerInit(moduleName)
|
||||
ctxLogger = ctxLoggerInit(moduleName)
|
||||
}
|
||||
|
||||
func ctxLoggerInit(moduleName string) *Logger {
|
||||
|
@ -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