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.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/deprecation.rb b/lib/puppet/parser/functions/deprecation.rb
index fc861a6..e30f3a0 100644
--- a/lib/puppet/parser/functions/deprecation.rb
+++ b/lib/puppet/parser/functions/deprecation.rb
@@ -9,7 +9,9 @@ EOS
key = arguments[0]
message = arguments[1]
-
- warning("deprecation. #{key}. #{message}")
+
+ if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
+ warning("deprecation. #{key}. #{message}")
+ end
end
end