From 32868805c435bb1bf943ef54e4b4c1716a3e96fe Mon Sep 17 00:00:00 2001 From: David Watt Date: Mon, 29 Nov 2021 13:36:50 -0800 Subject: [PATCH] fix(clouddriver): Return a call stack for better error handling --- .../clouddriver/aws/provider/agent/ClusterCachingAgent.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ClusterCachingAgent.groovy b/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ClusterCachingAgent.groovy index 36c163210bb..ab8b107fc14 100644 --- a/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ClusterCachingAgent.groovy +++ b/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ClusterCachingAgent.groovy @@ -550,7 +550,9 @@ class ClusterCachingAgent implements CachingAgent, OnDemandAgent, AccountAware, cacheTargetGroups(data, targetGroups) cacheLaunchTemplate(data, launchTemplates) } catch (Exception ex) { - log.warn("Failed to cache ${asg.autoScalingGroupName} in ${account.name}/${region}", ex) + StringWriter sw = new StringWriter() + ex.printStackTrace(sw) + log.warn("Failed to cache ${asg.autoScalingGroupName} in ${account.name}/${region}: ${sw.toString()}", ex) } } }