diff options
| author | Luke Kanies <luke@madstop.com> | 2009-11-07 15:48:57 -0600 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 2292b768c93a1ccba91cfe92d60c65ed936dd45c (patch) | |
| tree | 0759e4ff470941fc6bb5c9f6b5391b5f430c1291 /lib/puppet/util/log | |
| parent | d93d80a0afdbd53d87dc4a7498609117091e864b (diff) | |
| download | puppet-2292b768c93a1ccba91cfe92d60c65ed936dd45c.tar.gz puppet-2292b768c93a1ccba91cfe92d60c65ed936dd45c.tar.xz puppet-2292b768c93a1ccba91cfe92d60c65ed936dd45c.zip | |
Refactoring the RAL interface to logging
Previously, the Log class knew a lot about RAL objects,
but now the Logging module is the only one that does.
This greatly simplifies the Log class, which is good,
and means that whatever complexity does need to exist
is directly exposed in the Logging middleware module.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/util/log')
| -rw-r--r-- | lib/puppet/util/log/destinations.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb index 89f87dbec..002ca3624 100644 --- a/lib/puppet/util/log/destinations.rb +++ b/lib/puppet/util/log/destinations.rb @@ -113,9 +113,10 @@ Puppet::Util::Log.newdesttype :console do def colorize(level, str) case Puppet[:color] - when false; str - when true, :ansi, "ansi"; console_color(level, str) + when true, :ansi, "ansi", "yes"; console_color(level, str) when :html, "html"; html_color(level, str) + else + str end end |
