summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation/warnings.rb
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/warnings.rb
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/warnings.rb')
-rw-r--r--lib/chef/deprecation/warnings.rb2
1 files changed, 1 insertions, 1 deletions
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