Skip to content

Commit d40aa88

Browse files
committed
Add additional logs to syncCatalogSources
1 parent ffaa9bc commit d40aa88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/operators/catalog/operator.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,15 @@ func (o *Operator) syncResolvingNamespace(obj interface{}) error {
814814
// ensure the installplan reference is correct
815815
sub, changedIP, err := o.ensureSubscriptionInstallPlanState(logger, sub)
816816
if err != nil {
817+
logger.Debugf("error ensuring installplan state: %v", err)
817818
return err
818819
}
819820
subscriptionUpdated = subscriptionUpdated || changedIP
820821

821822
// record the current state of the desired corresponding CSV in the status. no-op if we don't know the csv yet.
822823
sub, changedCSV, err := o.ensureSubscriptionCSVState(logger, sub, querier)
823824
if err != nil {
825+
logger.Debugf("error recording current state of CSV in status: %v", err)
824826
return err
825827
}
826828

@@ -871,6 +873,8 @@ func (o *Operator) syncResolvingNamespace(obj interface{}) error {
871873
logger.WithError(err).Debug("error ensuring subscription installplan state")
872874
return err
873875
}
876+
} else {
877+
logger.Debugf("no subscriptions were updated")
874878
}
875879

876880
return nil

0 commit comments

Comments
 (0)