summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-09-25 07:19:48 -0700
committerJohn Keiser <john@johnkeiser.com>2015-09-25 12:22:19 -0700
commit424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f (patch)
treea687cef44f257a6b7402da826ed9292164707f20 /lib/chef/deprecation
parentc576de210dc42889d796074187a109a8d0dd6a19 (diff)
downloadchef-424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f.tar.gz
Find the spot the user called and use that as the deprecation location
Diffstat (limited to 'lib/chef/deprecation')
-rw-r--r--lib/chef/deprecation/provider/remote_directory.rb2
-rw-r--r--lib/chef/deprecation/warnings.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/deprecation/provider/remote_directory.rb b/lib/chef/deprecation/provider/remote_directory.rb
index b55a304696..cc8026ec55 100644
--- a/lib/chef/deprecation/provider/remote_directory.rb
+++ b/lib/chef/deprecation/provider/remote_directory.rb
@@ -22,7 +22,7 @@ class Chef
module RemoteDirectory
def directory_root_in_cookbook_cache
- Chef::Log.deprecation "the Chef::Provider::RemoteDirectory#directory_root_in_cookbook_cache method is deprecated"
+ Chef.log_deprecation "the Chef::Provider::RemoteDirectory#directory_root_in_cookbook_cache method is deprecated"
@directory_root_in_cookbook_cache ||=
begin
diff --git a/lib/chef/deprecation/warnings.rb b/lib/chef/deprecation/warnings.rb
index 376629710e..0b1ec2d5ed 100644
--- a/lib/chef/deprecation/warnings.rb
+++ b/lib/chef/deprecation/warnings.rb
@@ -27,7 +27,7 @@ class Chef
message = []
message << "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef 13."
message << "Please update your cookbooks accordingly."
- Chef.log_deprecation(message, caller(0..3))
+ Chef.log_deprecation(message)
super(*args)
end
end