@@ -131,32 +131,34 @@ func (c client) GetResources(ctx context.Context, job model.DiscoveryJob, region
131131 if resource .FilterThroughTags (job .SearchTags ) {
132132 resources = append (resources , & resource )
133133 } else {
134- c .logger .Debug ("Skipping resource because search tags do not match" , "arn" , resource .ARN )
134+ c .logger .Info ("Skipping resource because search tags do not match" , "arn" , resource .ARN )
135135 }
136136 }
137137 }
138138
139- c .logger .Debug ("GetResourcesPages finished" , "total" , len (resources ))
139+ c .logger .Info ("GetResourcesPages finished" , "total" , len (resources ), "namespace" , job . Namespace )
140140 }
141141
142142 if ext , ok := ServiceFilters [svc .Namespace ]; ok {
143143 if ext .ResourceFunc != nil {
144+ lenR := len (resources )
144145 shouldHaveDiscoveredResources = true
145146 newResources , err := ext .ResourceFunc (ctx , c , job , region )
146147 if err != nil {
147148 return nil , fmt .Errorf ("failed to apply ResourceFunc for %s, %w" , svc .Namespace , err )
148149 }
149150 resources = append (resources , newResources ... )
150- c .logger .Debug ("ResourceFunc finished" , "total" , len (resources ))
151+ c .logger .Info ("ResourceFunc finished" , "was" , lenR , " total" , len (resources ), "namespace" , job . Namespace )
151152 }
152153
153154 if ext .FilterFunc != nil {
155+ lenR := len (resources )
154156 filteredResources , err := ext .FilterFunc (ctx , c , resources )
155157 if err != nil {
156158 return nil , fmt .Errorf ("failed to apply FilterFunc for %s, %w" , svc .Namespace , err )
157159 }
158160 resources = filteredResources
159- c .logger .Debug ("FilterFunc finished" , "total" , len (resources ))
161+ c .logger .Info ("FilterFunc finished" , "was" , lenR , " total" , len (resources ), "namespace" , job . Namespace )
160162 }
161163 }
162164
0 commit comments