diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 14:47:48 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 14:47:48 -0800 |
commit | 11140c2cbd6f675c1bc0c3f5697f23d6404886ba (patch) | |
tree | d54623e143871639b72d75977adaabf0635a86a4 /lib/chef/deprecation | |
parent | 878ecf09a8945235637e3f761626f1e3c9e86ca1 (diff) | |
download | chef-11140c2cbd6f675c1bc0c3f5697f23d6404886ba.tar.gz |
Add Chef::Log.deprecation and associated wiring
Diffstat (limited to 'lib/chef/deprecation')
-rw-r--r-- | lib/chef/deprecation/warnings.rb | 5 |
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 - |