From dde182fc97f93ed62f89c8b6905388937f19b95d Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 16 Nov 2021 09:02:53 -0800 Subject: [PATCH] fix logs formatting, be more consistent --- pkg/cloudprovider/aws/subnets.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cloudprovider/aws/subnets.go b/pkg/cloudprovider/aws/subnets.go index 1c2f4adb9a8a..2837834c8f5d 100644 --- a/pkg/cloudprovider/aws/subnets.go +++ b/pkg/cloudprovider/aws/subnets.go @@ -90,10 +90,10 @@ func (s *SubnetProvider) getSubnets(ctx context.Context, filters []*ec2.Filter) } output, err := s.ec2api.DescribeSubnetsWithContext(ctx, &ec2.DescribeSubnetsInput{Filters: filters}) if err != nil { - return nil, fmt.Errorf("describing subnets %+v, %w", filters, err) + return nil, fmt.Errorf("describing subnets %s, %w", pretty.Concise(filters), err) } if len(output.Subnets) == 0 { - return nil, fmt.Errorf("no subnets found via %+v", pretty.Concise(filters)) + return nil, fmt.Errorf("no subnets found via %s", pretty.Concise(filters)) } s.cache.Set(fmt.Sprint(hash), output.Subnets, CacheTTL) logging.FromContext(ctx).Debugf("Discovered subnets: %s", s.prettySubnets(output.Subnets))