Skip to content

Commit ceb3189

Browse files
committed
Add debug statements
1 parent 162db89 commit ceb3189

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def self.mongosh_cmd(db, host, cmd)
103103
end
104104

105105
args += ['--eval', cmd]
106+
Puppet.warning('Mongosh arguments')
107+
Puppet.warning(args)
106108
mongosh(args)
107109
end
108110

@@ -168,6 +170,7 @@ def self.mongo_eval(cmd, db = 'admin', retries = 10, host = nil)
168170
mongosh_cmd(db, conn_string, cmd)
169171
end
170172
rescue StandardError => e
173+
Puppet.warning(e)
171174
retry_count -= 1
172175
if retry_count.positive?
173176
Puppet.debug "Request failed: '#{e.message}' Retry: '#{retries - retry_count}'"

0 commit comments

Comments
 (0)