lib/daemonizer.rb in daemonizer-0.4.11 vs lib/daemonizer.rb in daemonizer-0.4.12

- old
+ new

@@ -66,10 +66,14 @@ @@logger = Logger.new(@@logger_file) set_logger_common_options end def self.logger - @@logger + if defined?(@@logger) + @@logger + else + nil + end end def self.[](pool) find_pools(pool).first or nil end