Skip to content

Commit bab2b9a

Browse files
committed
Add debug statement
1 parent 4b98d53 commit bab2b9a

File tree

1 file changed

+2
-1
lines changed
  • lib/puppet/provider/mongodb_replset

1 file changed

+2
-1
lines changed

lib/puppet/provider/mongodb_replset/mongo.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ def get_hosts_status(members)
176176
Puppet.debug "Host #{host} is alive but unconfigured: #{status['info']}"
177177
alive.push(member)
178178
end
179-
rescue Puppet::ExecutionFailure
179+
rescue Puppet::ExecutionFailure => e
180180
Puppet.warning "Can't connect to replicaset member #{host}."
181+
Puppet.warning(e)
181182
end
182183
alive.uniq!
183184
dead = members - alive

0 commit comments

Comments
 (0)