Skip to content

Commit

Permalink
Merge pull request #144 from yvetteyuanw/logs
Browse files Browse the repository at this point in the history
Add logs
  • Loading branch information
gmacf authored Sep 3, 2024
2 parents e0eb604 + dd6db89 commit a50e5d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (s *Service) GetBootstrapData(ctx context.Context, req *bpb.GetBootstrapDat
if err != nil {
return nil, err
}
log.Infof("Received GetBootstrapData request from %v", peerAddr)
log.Infof("Received GetBootstrapData request(%+v) from %v", req, peerAddr)
fixedChasis := true
ccSerial := ""
chassisDesc := req.GetChassisDescriptor()
Expand Down Expand Up @@ -266,6 +266,11 @@ func (s *Service) ReportStatus(ctx context.Context, req *bpb.ReportStatusRequest
log.Infof("=============================================================================")
log.Infof("========================== Status report received ===========================")
log.Infof("=============================================================================")
peerAddr, err := peerAddressFromContext(ctx)
if err != nil {
return nil, err
}
log.Infof("Received ReportStatus request(%+v) from %v", req, peerAddr)
return &bpb.EmptyResponse{}, s.em.SetStatus(ctx, req)
}

Expand Down

0 comments on commit a50e5d4

Please sign in to comment.