lib/log2mail/main.rb in log2mail-0.0.1.pre3 vs lib/log2mail/main.rb in log2mail-0.0.1.pre4

- old
+ new

@@ -79,11 +79,11 @@ defaults 60 } option('maxbufsize') { argument_required; cast :int; default 65536 } def run fail "Not starting. Daemon running." if daemon_running? and !params['nofork'].value - config = Log2mail::Config.parse_config @config_path + config = Log2mail::Config::ConfigFileHandler.parse_config @config_path unless params['nofork'].value Process.daemon $PROGRAM_NAME = Log2mail::PROGNAME $logger = Syslog::Logger.new(Log2mail::PROGNAME) $logger.formatter = Log2mail::LoggerFormatter @@ -131,10 +131,10 @@ end mode 'configtest' do option('effective', 'e') { description 'show effective settings' } def run - config = Log2mail::Config.parse_config @config_path + config = Log2mail::Config::ConfigFileHandler.parse_config @config_path puts config.formatted(params['effective'].value) end end mode 'console' do