add debugging statements to add/remove listeners

This commit is contained in:
clint shryock 2015-11-12 16:20:54 -06:00
parent c60a963908
commit 6fa69ede1c
1 changed files with 2 additions and 0 deletions

View File

@ -410,6 +410,7 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
LoadBalancerPorts: ports, LoadBalancerPorts: ports,
} }
log.Printf("[DEBUG] ELB Delete Listeners opts: %s", deleteListenersOpts)
_, err := elbconn.DeleteLoadBalancerListeners(deleteListenersOpts) _, err := elbconn.DeleteLoadBalancerListeners(deleteListenersOpts)
if err != nil { if err != nil {
return fmt.Errorf("Failure removing outdated ELB listeners: %s", err) return fmt.Errorf("Failure removing outdated ELB listeners: %s", err)
@ -422,6 +423,7 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
Listeners: add, Listeners: add,
} }
log.Printf("[DEBUG] ELB Create Listeners opts: %s", createListenersOpts)
_, err := elbconn.CreateLoadBalancerListeners(createListenersOpts) _, err := elbconn.CreateLoadBalancerListeners(createListenersOpts)
if err != nil { if err != nil {
return fmt.Errorf("Failure adding new or updated ELB listeners: %s", err) return fmt.Errorf("Failure adding new or updated ELB listeners: %s", err)