summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorDavid Schmitt <david@black.co.at>2016-10-08 18:10:53 +0100
committerDavid Schmitt <david@black.co.at>2016-10-08 18:10:53 +0100
commite44238a9c7da7ad4a872ba86cd103becadd51b3b (patch)
tree0fe8acbdcfb62cdba929923df0e2a0b0b1dca6f0 /lib/puppet/parser/functions
parent9debb12b2d6190045a11d2277c7b730ac5732f96 (diff)
Revert "Addition of logging with file and line numbers"
This reverts commit b63862ff43194194f7428739a32cfe13bad1e7ed, as it would only show the irrelevant first entry of the ruby stack trace. The puppetserver log does contain the full trace information, or you can use --strict=error to cause a hard failure when hitting a deprecation. # Conflicts: # lib/puppet/functions/validate_legacy.rb
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r--lib/puppet/parser/functions/deprecation.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb
index 0cb247d..e30f3a0 100644
--- a/lib/puppet/parser/functions/deprecation.rb
+++ b/lib/puppet/parser/functions/deprecation.rb
@@ -11,9 +11,7 @@ EOS
message = arguments[1]
if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
- caller_infos = caller.first.split(":")
- err_message = "#{message} : #{caller_infos[0]} : #{caller_infos[1]}"
- warning("deprecation. #{key}. #{err_message}")
+ warning("deprecation. #{key}. #{message}")
end
end
end