lib/dexter/log_parser.rb in pgdexter-0.3.1 vs lib/dexter/log_parser.rb in pgdexter-0.3.2
- old
+ new
@@ -1,7 +1,9 @@
module Dexter
class LogParser
- REGEX = /duration: (\d+\.\d+) ms (statement|execute <unnamed>): (.+)/
+ include Logging
+
+ REGEX = /duration: (\d+\.\d+) ms (statement|execute [^:]+): (.+)/
LINE_SEPERATOR = ": ".freeze
DETAIL_LINE = "DETAIL: ".freeze
def initialize(logfile, collector)
@logfile = logfile