Skip to content

Commit

Permalink
[agent] Minor fix for session log to be in the correct place.
Browse files Browse the repository at this point in the history
Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
  • Loading branch information
anshulpundir committed Jan 26, 2018
1 parent a4b9c4c commit 7d507f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ func newSession(ctx context.Context, agent *Agent, delay time.Duration, sessionI
grpc.WithTransportCredentials(agent.config.Credentials),
grpc.WithTimeout(dispatcherRPCTimeout),
)
log.G(ctx).Infof("manager selected by agent for new session: %v", cc.Peer())

if err != nil {
s.errs <- err
return s
}

log.G(ctx).Infof("manager selected by agent for new session: %v", cc.Peer())

s.conn = cc

go s.run(sessionCtx, delay, description)
Expand Down

0 comments on commit 7d507f6

Please sign in to comment.