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.rb | |
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.rb')
-rw-r--r-- | lib/puppet/util/log.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb index 50111ab0d..e3930fbe4 100644 --- a/lib/puppet/util/log.rb +++ b/lib/puppet/util/log.rb @@ -207,8 +207,7 @@ class Puppet::Util::Log @levels.include?(level) end - attr_accessor :level, :message, :time, :remote, :file, :line, :version - attr_reader :source + attr_accessor :level, :message, :time, :remote, :file, :line, :version, :source def initialize(args) unless args.include?(:level) && args.include?(:message) |