@@ -75,6 +75,7 @@ func NewClient(
7575}
7676
7777func (c client ) GetResources (ctx context.Context , job model.DiscoveryJob , region string ) ([]* model.TaggedResource , error ) {
78+ c .logger .Info ("Using tagging.Client V1" )
7879 svc := config .SupportedServices .GetService (job .Namespace )
7980 var resources []* model.TaggedResource
8081 shouldHaveDiscoveredResources := false
@@ -124,7 +125,7 @@ func (c client) GetResources(ctx context.Context, job model.DiscoveryJob, region
124125 if resource .FilterThroughTags (job .SearchTags ) {
125126 resources = append (resources , & resource )
126127 } else {
127- c .logger .Debug ("Skipping resource because search tags do not match" , "arn" , resource .ARN )
128+ c .logger .Info ("Skipping resource because search tags do not match" , "arn" , resource .ARN )
128129 }
129130 }
130131 return ! lastPage
@@ -133,7 +134,7 @@ func (c client) GetResources(ctx context.Context, job model.DiscoveryJob, region
133134 return nil , err
134135 }
135136
136- c .logger .Debug ("GetResourcesPages finished" , "total" , len (resources ))
137+ c .logger .Info ("GetResourcesPages finished" , "total" , len (resources ))
137138 }
138139
139140 if ext , ok := ServiceFilters [svc .Namespace ]; ok {
@@ -144,7 +145,7 @@ func (c client) GetResources(ctx context.Context, job model.DiscoveryJob, region
144145 return nil , fmt .Errorf ("failed to apply ResourceFunc for %s, %w" , svc .Namespace , err )
145146 }
146147 resources = append (resources , newResources ... )
147- c .logger .Debug ("ResourceFunc finished" , "total" , len (resources ))
148+ c .logger .Info ("ResourceFunc finished" , "total" , len (resources ))
148149 }
149150
150151 if ext .FilterFunc != nil {
@@ -153,7 +154,7 @@ func (c client) GetResources(ctx context.Context, job model.DiscoveryJob, region
153154 return nil , fmt .Errorf ("failed to apply FilterFunc for %s, %w" , svc .Namespace , err )
154155 }
155156 resources = filteredResources
156- c .logger .Debug ("FilterFunc finished" , "total" , len (resources ))
157+ c .logger .Info ("FilterFunc finished" , "total" , len (resources ))
157158 }
158159 }
159160
0 commit comments