Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode

 Conflicts:
	internal/api/group/group.go
	internal/api/group/super_group.go
	pkg/common/db/controller/user.go
This commit is contained in:
wangchuxiao
2023-02-09 14:49:17 +08:00
19 changed files with 1776 additions and 1681 deletions
+6 -2
View File
@@ -38,8 +38,12 @@ func GetSelfFuncName() string {
return cleanUpFuncName(runtime.FuncForPC(pc).Name())
}
func GetFuncName(skip int) string {
pc, _, _, _ := runtime.Caller(skip + 1)
func GetFuncName(skips ...int) string {
skip := 1
if len(skips) > 0 {
skip = skips[0] + 1
}
pc, _, _, _ := runtime.Caller(skip)
return cleanUpFuncName(runtime.FuncForPC(pc).Name())
}