Skip to content

Commit 68a376d

Browse files
authored
Merge pull request #2492 from anshulpundir/bug
[agent] Minor fix for session log to be in the correct place
2 parents a4b9c4c + 7d507f6 commit 68a376d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/session.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ func newSession(ctx context.Context, agent *Agent, delay time.Duration, sessionI
6565
grpc.WithTransportCredentials(agent.config.Credentials),
6666
grpc.WithTimeout(dispatcherRPCTimeout),
6767
)
68-
log.G(ctx).Infof("manager selected by agent for new session: %v", cc.Peer())
6968

7069
if err != nil {
7170
s.errs <- err
7271
return s
7372
}
73+
74+
log.G(ctx).Infof("manager selected by agent for new session: %v", cc.Peer())
75+
7476
s.conn = cc
7577

7678
go s.run(sessionCtx, delay, description)

0 commit comments

Comments
 (0)