From dedc94ef00287a870677b214b6e092672b69ed1d Mon Sep 17 00:00:00 2001 From: konoui Date: Fri, 17 Feb 2023 21:35:15 +0900 Subject: [PATCH] fix ecs-init logging --- ecs-init/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs-init/cache/cache.go b/ecs-init/cache/cache.go index a61b34b66b5..fe7ee4f6a4a 100644 --- a/ecs-init/cache/cache.go +++ b/ecs-init/cache/cache.go @@ -183,7 +183,7 @@ func (d *Downloader) getRegion() string { region, err := d.metadata.Region() if err != nil { - log.Warn("Could not retrieve the region from EC2 Instance Metadata. Error: %s", err.Error()) + log.Warnf("Could not retrieve the region from EC2 Instance Metadata. Error: %s", err.Error()) region = defaultRegion } d.region = region