Commit deb64a79 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

logger: don't die when started without channels option

parent 38a09f69
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4,9 +4,8 @@ class FnordMetric::Logger
    expire = FnordMetric.options[:event_queue_ttl]
    redis  = Redis.new
 
    if @opts[:channels]
    @opts[:channels] ||= []
    @opts[:channels] = @opts[:channels].map(&:to_s) 
    end

    dump_file = File.open(logfile_path, 'r')
    num_lines = %x{wc -l #{logfile_path}}.to_i