summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/deprecation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/deprecation.rb')
-rw-r--r--lib/puppet/parser/functions/deprecation.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb
index e30f3a0..0cb247d 100644
--- a/lib/puppet/parser/functions/deprecation.rb
+++ b/lib/puppet/parser/functions/deprecation.rb
@@ -11,7 +11,9 @@ EOS
message = arguments[1]
if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
- warning("deprecation. #{key}. #{message}")
+ caller_infos = caller.first.split(":")
+ err_message = "#{message} : #{caller_infos[0]} : #{caller_infos[1]}"
+ warning("deprecation. #{key}. #{err_message}")
end
end
end