@@ -180,11 +180,13 @@ func (actuator limitActuator) ListOSResourcesForImport(ctx context.Context, obj
180180}
181181
182182func (actuator limitActuator ) listOSResources (ctx context.Context , filters []osclients.ResourceFilter [osResourceT ], listOpts limits.ListOptsBuilder ) iter.Seq2 [* limits.Limit , error ] {
183- registeredLimits := actuator .osClient .ListLimits (ctx , listOpts )
184- return osclients .Filter (registeredLimits , filters ... )
183+ ctrl .LoggerFrom (ctx ).V (logging .Debug ).Info ("list option" , "listOpts" , listOpts )
184+
185+ return osclients .Filter (actuator .osClient .ListLimits (ctx , listOpts ), filters ... )
185186}
186187
187188func (actuator limitActuator ) CreateResource (ctx context.Context , obj orcObjectPT ) (* osResourceT , progress.ReconcileStatus ) {
189+ logger := ctrl .LoggerFrom (ctx ).WithValues ("limitName" , obj .Name )
188190 resource := obj .Spec .Resource
189191
190192 if resource == nil {
@@ -226,7 +228,7 @@ func (actuator limitActuator) CreateResource(ctx context.Context, obj orcObjectP
226228 }
227229 if needsReschedule , err := reconcileStatus .NeedsReschedule (); needsReschedule {
228230 if err != nil {
229- ctrl . LoggerFrom ( ctx ) .Info ("fetch dependency before creating limit" , "error" , err )
231+ logger .Info ("fetch dependency before creating limit" , "error" , err )
230232 }
231233
232234 return nil , reconcileStatus
@@ -248,6 +250,8 @@ func (actuator limitActuator) CreateResource(ctx context.Context, obj orcObjectP
248250 return nil , progress .WrapError (err )
249251 }
250252
253+ logger .Info ("limit created" , "createOpts" , createOpts )
254+
251255 return osResource , nil
252256}
253257
0 commit comments