Skip to content

Commit

Permalink
Merge pull request #289 from shawnfeng/backward-backdoor
Browse files Browse the repository at this point in the history
Backward backdoor
  • Loading branch information
brzyangg authored Nov 25, 2021
2 parents ccf7094 + 8d283e2 commit 4870d74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util/service/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,6 @@ func (m *Server) initServer(confEtcd configEtcd, args *cmdArgs, initfn func(Serv
defer xlog.AppLogSync()
defer xlog.StatLogSync()

// NOTE: initBackdoor会启动http服务,但由于health check的http请求不需要追踪,且它是判断服务启动与否的关键,所以initTracer可以放在它之后进行
xlog.Infof(ctx, "%s init backdoor start", fun)
m.initBackdoor(sb, args)
xlog.Infof(ctx, "%s init backdoor end", fun)

xlog.Infof(ctx, "%s init handleModel start", fun)
err = m.handleModel(sb, args.servLoc, args.model)
if err != nil {
Expand Down Expand Up @@ -276,6 +271,11 @@ func (m *Server) initServer(confEtcd configEtcd, args *cmdArgs, initfn func(Serv
}
xlog.Infof(ctx, "%s init processor end", fun)

// NOTE: initBackdoor会启动http服务,但由于health check的http请求不需要追踪,且它是判断服务启动与否的关键,所以initTracer可以放在它之后进行
xlog.Infof(ctx, "%s init backdoor start", fun)
m.initBackdoor(sb, args)
xlog.Infof(ctx, "%s init backdoor end", fun)

xlog.Infof(ctx, "%s init SetGroupAndDisable start", fun)
sb.SetGroupAndDisable(args.group, args.disable)
xlog.Infof(ctx, "%s init SetGroupAndDisable end", fun)
Expand Down

0 comments on commit 4870d74

Please sign in to comment.