diff options
author | Thom May <thom@chef.io> | 2018-03-23 13:05:13 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-03-23 15:36:45 +0000 |
commit | 41eb0672da4f678231f03b1b7e14dd631f8b1e49 (patch) | |
tree | fee217a9f5ada6b89487b71576524f86d2445717 /lib/chef/provider/cron/unix.rb | |
parent | 57f74c4eae1c8683abacf92ad5bca86ae4a35522 (diff) | |
download | chef-tm/lower_debug.tar.gz |
mechanical conversion of most debug log statements to tracetm/lower_debug
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/provider/cron/unix.rb')
-rw-r--r-- | lib/chef/provider/cron/unix.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/cron/unix.rb b/lib/chef/provider/cron/unix.rb index 108e73c9d3..15195dbb88 100644 --- a/lib/chef/provider/cron/unix.rb +++ b/lib/chef/provider/cron/unix.rb @@ -36,7 +36,7 @@ class Chef crontab = shell_out("/usr/bin/crontab -l", :user => @new_resource.user) status = crontab.status.exitstatus - Chef::Log.debug crontab.format_for_exception if status > 0 + logger.trace crontab.format_for_exception if status > 0 if status > 1 raise Chef::Exceptions::Cron, "Error determining state of #{@new_resource.name}, exit: #{status}" @@ -62,12 +62,12 @@ class Chef exit_status = 1 end rescue Chef::Exceptions::Exec => e - Chef::Log.debug(e.message) + logger.trace(e.message) exit_status = 1 error_message = e.message rescue ArgumentError => e # usually raised on invalid user. - Chef::Log.debug(e.message) + logger.trace(e.message) exit_status = 1 error_message = e.message end |