summaryrefslogtreecommitdiff
path: root/lib/chef/log.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:16:43 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:16:43 -0800
commit5a69125a49ebb10848cc87cb3e31a540b517c633 (patch)
tree2ecea98b9f88ec43de28775469ce61ad89439ee0 /lib/chef/log.rb
parentf9ca811feb8560a9b8e054030d6cf5ea62d8cfda (diff)
downloadchef-5a69125a49ebb10848cc87cb3e31a540b517c633.tar.gz
peer review feedback for deprecation warnings
Diffstat (limited to 'lib/chef/log.rb')
-rw-r--r--lib/chef/log.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/log.rb b/lib/chef/log.rb
index 56c0ef022c..5c737699bc 100644
--- a/lib/chef/log.rb
+++ b/lib/chef/log.rb
@@ -37,10 +37,10 @@ class Chef
def self.deprecation(msg=nil, &block)
if Chef::Config[:treat_deprecation_warnings_as_errors]
- error(msg, *block)
+ error(msg, &block)
raise Chef::Exceptions::DeprecatedFeatureError
else
- warn(msg, *block)
+ warn(msg, &block)
end
end