lib/dexter/processor.rb in pgdexter-0.3.7 vs lib/dexter/processor.rb in pgdexter-0.3.8
- old
+ new
@@ -35,20 +35,20 @@
sleep(@starting_interval)
loop do
begin
process_queries
rescue PG::ServerError => e
- log "ERROR: #{e.class.name}: #{e.message}"
+ log colorize("ERROR: #{e.class.name}: #{e.message}", :red)
end
sleep(@interval)
end
end
end
begin
@log_parser.perform
rescue Errno::ENOENT => e
- abort "ERROR: #{e.message}"
+ raise Dexter::Abort, "ERROR: #{e.message}"
end
process_queries
end