PT-1573 Fixed General log parser regex

The regexp to process log entries was not considering timestamps in +n,
it was only considering timestamps in -n hours
This commit is contained in:
Carlos Salguero
2018-09-26 09:25:33 -03:00
parent eec92a7387
commit 2b5c8f69ab
5 changed files with 66 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ sub new {
my $genlog_line_1= qr{
\A
(?:(\d{6}\s+\d{1,2}:\d\d:\d\d|\d{4}-\d{1,2}-\d{1,2}T\d\d:\d\d:\d\d\.\d+(?:Z|-?\d\d:\d\d)?))? # Timestamp
(?:(\d{6}\s+\d{1,2}:\d\d:\d\d|\d{4}-\d{1,2}-\d{1,2}T\d\d:\d\d:\d\d\.\d+(?:Z|[-+]?\d\d:\d\d)?))? # Timestamp
\s+
(?:\s*(\d+)) # Thread ID
\s