lib/dexter/log_parser.rb in pgdexter-0.2.0 vs lib/dexter/log_parser.rb in pgdexter-0.2.1

- old
+ new

@@ -10,11 +10,11 @@ def perform active_line = nil duration = nil - each_line do |line| + @logfile.each_line do |line| if active_line if line.include?(LINE_SEPERATOR) process_entry(active_line, duration) active_line = nil else @@ -29,15 +29,9 @@ end process_entry(active_line, duration) if active_line end private - - def each_line - @logfile.each_line do |line| - yield line - end - end def process_entry(query, duration) @collector.add(query, duration) end end