Skip to content

Commit

Permalink
replaced log by Chef::Log.info, close #22
Browse files Browse the repository at this point in the history
  • Loading branch information
kher committed Jul 28, 2015
1 parent fe92253 commit 643d773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/default.rb
Expand Up @@ -22,7 +22,7 @@
include_recipe "apt::default"
# do things on debian-ish platforms (debian, ubuntu, linuxmint)

log "Url: #{url}#{version}/#{basedirdeb}/"
Chef::Log.info("Url: #{url}#{version}/#{basedirdeb}/")

apt_repository "zend-server" do
uri "#{url}#{version}/#{basedirdeb}/"
Expand Down Expand Up @@ -67,7 +67,7 @@
end
end

log "Starting install for package #{package_name}"
Chef::Log.info("Starting install for package #{package_name}")
package package_name do
:install
notifies :run, 'bash[Copy zend server vhosts]', :immediate if node[:platform_family] == "rhel"
Expand Down Expand Up @@ -96,7 +96,7 @@
r = resources('service[apache2]')
r.reload_command('/bin/true')
rescue Chef::Exceptions::ResourceNotFound
log "service[apache2] resource not defined. Skipping restart."
Chef::Log.info("service[apache2] resource not defined. Skipping restart.")
end
end
end
Expand Down

0 comments on commit 643d773

Please sign in to comment.