Skip to content

Commit c9c7ee7

Browse files
authored
Return a call stack for better error handling
1 parent 96755fe commit c9c7ee7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ClusterCachingAgent.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ class ClusterCachingAgent implements CachingAgent, OnDemandAgent, AccountAware,
550550
cacheTargetGroups(data, targetGroups)
551551
cacheLaunchTemplate(data, launchTemplates)
552552
} catch (Exception ex) {
553-
log.warn("Failed to cache ${asg.autoScalingGroupName} in ${account.name}/${region}", ex)
553+
StringWriter sw = new StringWriter()
554+
ex.printStackTrace(sw)
555+
log.warn("Failed to cache ${asg.autoScalingGroupName} in ${account.name}/${region}: ${sw.toString()}", ex)
554556
}
555557
}
556558
}

0 commit comments

Comments
 (0)