Skip to content
Snippets Groups Projects
Commit e224e1de authored by Mathieu Sauve-Frankel's avatar Mathieu Sauve-Frankel
Browse files

tweak the logging a bit

parent ca133981
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,11 @@ class MailHandler < Chef::Handler
status = success? ? "Successful" : "Failed"
subject = "#{status} Chef run on node #{node.fqdn}"
Chef::Log.info("Load template path: #{@template_path}")
Chef::Log.debug("mail handler template path: #{@template_path}")
if File.exists? @template_path
template = IO.read(@template_path).chomp
else
Chef::Log.error("Could not locate template: #{@template_path}")
Chef::Log.error("mail handler template not found: #{@template_path}")
raise Errno::ENOENT
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment