add some info level log

This commit is contained in:
aliamerj
2025-10-10 17:47:15 +03:00
parent 23f9dd04b8
commit e570570fe5
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -992,9 +992,9 @@ func (e *Engine) receiveJobEvents() {
e.clientCancel()
return
}
log.Debugf("stopped receiving jobs from Management Service")
log.Info("stopped receiving jobs from Management Service")
}()
log.Debugf("connecting to Management Service jobs stream")
log.Info("connecting to Management Service jobs stream")
}
func (e *Engine) handleBundle(params *mgmProto.BundleParameters) (*mgmProto.JobResponse_Bundle, error) {
+2 -1
View File
@@ -201,6 +201,7 @@ func (c *GrpcClient) handleJobStream(
continue
}
log.WithContext(ctx).Infof("Received a new job from the management server (ID: %s)", jobReq.ID)
jobResp := c.processJobRequest(ctx, jobReq, msgHandler)
if err := c.sendJobResponse(ctx, stream, serverPubKey, jobResp); err != nil {
return err
@@ -283,7 +284,7 @@ func (c *GrpcClient) sendJobResponse(
return err
}
log.WithContext(ctx).Debugf("job response sent successfully for job %s", string(resp.ID))
log.WithContext(ctx).Infof("Job %s completed successfully", resp.ID)
return nil
}