Project

General

Profile

« Previous | Next » 

Revision ad822960

Added by Jiri Stransky over 9 years ago

Refs #9049 - fix log message formatting

Missing "%s" in the commit that was supposed to fix #9049 caused the
exception message not to be printed into the log.

(cherry picked from commit e9672724ef29fc2db401e05aa89eacc2c06c51a7)

View differences:

app/models/host/managed.rb
ProxyAPI::Puppet.new({:url => puppet_proxy.url}).run fqdn
rescue => e
errors.add(:base, _("failed to execute puppetrun: %s") % e)
logger.warn "unable to execute puppet run: " % e
logger.warn "unable to execute puppet run: #{e}"
logger.debug e.backtrace.join("\n")
false
end

Also available in: Unified diff