From 2292b768c93a1ccba91cfe92d60c65ed936dd45c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sat, 7 Nov 2009 15:48:57 -0600 Subject: 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 --- lib/puppet/util/log.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/puppet/util/log.rb') 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) -- cgit