mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-16 00:49:25 +08:00
db
This commit is contained in:
parent
6fd6c29ea4
commit
db51b597da
@ -4,7 +4,6 @@ import (
|
|||||||
"Open_IM/pkg/common/constant"
|
"Open_IM/pkg/common/constant"
|
||||||
"Open_IM/pkg/common/log"
|
"Open_IM/pkg/common/log"
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -124,11 +123,6 @@ type FuncInfo struct {
|
|||||||
|
|
||||||
type Args map[string]interface{}
|
type Args map[string]interface{}
|
||||||
|
|
||||||
func (a Args) String() string {
|
|
||||||
bytes, _ := json.Marshal(a)
|
|
||||||
return string(bytes)
|
|
||||||
}
|
|
||||||
|
|
||||||
func SetContextInfo(ctx context.Context, funcName string, err error, args ...interface{}) {
|
func SetContextInfo(ctx context.Context, funcName string, err error, args ...interface{}) {
|
||||||
t := ctx.Value(TraceLogKey).(*ApiInfo)
|
t := ctx.Value(TraceLogKey).(*ApiInfo)
|
||||||
var funcInfo FuncInfo
|
var funcInfo FuncInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user