diff options
author | Thom May <thom@may.lt> | 2016-07-19 18:38:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 18:38:49 +0100 |
commit | 6644c2d16df7867c81e9ae192358c19ebcc6ca99 (patch) | |
tree | e0eac6803d5831f93046930184294e860b9aa984 /lib/chef_zero | |
parent | 903dd0fbbed02098c8c424df3393b10f873a5da5 (diff) | |
parent | 3275568cd6da55e5dc8f3d16a9985d515bc2b20a (diff) | |
download | chef-zero-6644c2d16df7867c81e9ae192358c19ebcc6ca99.tar.gz |
Merge pull request #222 from maxlazio/suppress_rescue_log_level
Set log level to debug in the rescue block.
Diffstat (limited to 'lib/chef_zero')
-rw-r--r-- | lib/chef_zero/rest_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb index f86ece6..929aa8f 100644 --- a/lib/chef_zero/rest_base.rb +++ b/lib/chef_zero/rest_base.rb @@ -61,7 +61,7 @@ module ChefZero begin self.send(method, request) rescue RestErrorResponse => e - ChefZero::Log.info("#{e.inspect}\n#{e.backtrace.join("\n")}") + ChefZero::Log.debug("#{e.inspect}\n#{e.backtrace.join("\n")}") error(e.response_code, e.error) end end |