summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation/warnings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/deprecation/warnings.rb')
-rw-r--r--lib/chef/deprecation/warnings.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/deprecation/warnings.rb b/lib/chef/deprecation/warnings.rb
index 22b28f93b0..68b1d0e202 100644
--- a/lib/chef/deprecation/warnings.rb
+++ b/lib/chef/deprecation/warnings.rb
@@ -24,8 +24,8 @@ class Chef
method_names.each do |name|
m = instance_method(name)
define_method(name) do |*args|
- Chef::Log.warn "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef 12."
- Chef::Log.warn "Please update your cookbooks accordingly. Accessed from:"
+ Chef::Log.deprecation "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef 12."
+ Chef::Log.deprecation "Please update your cookbooks accordingly. Accessed from:"
caller[0..3].each {|l| Chef::Log.warn l}
super(*args)
end
@@ -35,4 +35,3 @@ class Chef
end
end
end
-