summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/deprecation')
-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 34f468ff53..616f179d53 100644
--- a/lib/chef/deprecation/warnings.rb
+++ b/lib/chef/deprecation/warnings.rb
@@ -26,9 +26,8 @@ class Chef
define_method(name) do |*args|
message = []
message << "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef 12."
- message << "Please update your cookbooks accordingly. Accessed from:"
- caller[0..3].each {|l| message << l}
- Chef::Log.deprecation message
+ message << "Please update your cookbooks accordingly."
+ Chef.log.deprecation(message, caller(0..3))
super(*args)
end
end