diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:08:08 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:08:08 -0700 |
commit | e569f3baec68b9f53b37ac07984b7a858b155991 (patch) | |
tree | 228ce122f952d72b513562a1874f93624ce855fb /lib/puppet/util/logging.rb | |
parent | f6fb193078c497476326ee80827e1585ae26603c (diff) | |
download | puppet-e569f3baec68b9f53b37ac07984b7a858b155991.tar.gz puppet-e569f3baec68b9f53b37ac07984b7a858b155991.tar.xz puppet-e569f3baec68b9f53b37ac07984b7a858b155991.zip |
(#5027) Use Puppet#warning for deprecation_wanring instead of Kernel#warn
Using warning, the deprecation warnings will appear in logs and in color.
Paired-With: Jesse Wolfe
Diffstat (limited to 'lib/puppet/util/logging.rb')
-rw-r--r-- | lib/puppet/util/logging.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/logging.rb b/lib/puppet/util/logging.rb index 36eb43cd2..4e76ae414 100644 --- a/lib/puppet/util/logging.rb +++ b/lib/puppet/util/logging.rb @@ -18,7 +18,7 @@ module Puppet::Util::Logging def deprecation_warning(message) $deprecation_warnings ||= Hash.new(0) if $deprecation_warnings.length < 100 and ($deprecation_warnings[message] += 1) == 1 - warn message + warning message end end |