@@ -286,13 +286,13 @@ func (r *GitRepositoryReconciler) reconcile(ctx context.Context, obj *sourcev1.G
286286 res = sreconcile .LowestRequeuingResult (res , recResult )
287287 }
288288
289- r .notify (oldObj , obj , commit , res , resErr )
289+ r .notify (ctx , oldObj , obj , commit , res , resErr )
290290
291291 return res , resErr
292292}
293293
294294// notify emits notification related to the result of reconciliation.
295- func (r * GitRepositoryReconciler ) notify (oldObj , newObj * sourcev1.GitRepository , commit git.Commit , res sreconcile.Result , resErr error ) {
295+ func (r * GitRepositoryReconciler ) notify (ctx context. Context , oldObj , newObj * sourcev1.GitRepository , commit git.Commit , res sreconcile.Result , resErr error ) {
296296 // Notify successful reconciliation for new artifact, no-op reconciliation
297297 // and recovery from any failure.
298298 if r .shouldNotify (oldObj , newObj , res , resErr ) {
@@ -319,10 +319,12 @@ func (r *GitRepositoryReconciler) notify(oldObj, newObj *sourcev1.GitRepository,
319319 if oldChecksum != newObj .GetArtifact ().Checksum {
320320 r .AnnotatedEventf (newObj , annotations , corev1 .EventTypeNormal ,
321321 "NewArtifact" , message )
322+ ctrl .LoggerFrom (ctx ).Info (message )
322323 } else {
323324 if sreconcile .FailureRecovery (oldObj , newObj , gitRepositoryFailConditions ) {
324325 r .AnnotatedEventf (newObj , annotations , corev1 .EventTypeNormal ,
325326 meta .SucceededReason , message )
327+ ctrl .LoggerFrom (ctx ).Info (message )
326328 }
327329 }
328330 }
0 commit comments