mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 05:12:32 +08:00
修复微信登录ak本地缓存刷新问题
This commit is contained in:
@@ -16,4 +16,6 @@ var (
|
||||
SysType = runtime.GOOS
|
||||
// Blacklists 黑名单列表
|
||||
Blacklists map[string]struct{}
|
||||
// JaegerSwitch 链路追踪开关
|
||||
JaegerSwitch bool
|
||||
)
|
||||
|
@@ -120,7 +120,8 @@ func LoggingServeLogHandler(ctx context.Context, in *glog.HandlerInput) {
|
||||
|
||||
// InitTrace 初始化链路追踪
|
||||
func InitTrace(ctx context.Context) {
|
||||
if !g.Cfg().MustGet(ctx, "jaeger.switch").Bool() {
|
||||
JaegerSwitch = g.Cfg().MustGet(ctx, "jaeger.switch").Bool()
|
||||
if !JaegerSwitch {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user