From 8c0c83e464add96d46f2a06c67a97f53f9e5b949 Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Fri, 8 Feb 2019 11:43:34 +0100 Subject: [PATCH] Fix autodetection of pg>=10 defauilt log line prefix. --- pgbadger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgbadger b/pgbadger index 7ebd36c..46a02e9 100755 --- a/pgbadger +++ b/pgbadger @@ -14605,7 +14605,7 @@ sub search_log_format # Are default stderr lines since 10.0 or minimal prefix for pgbadger? } elsif ($line =~ -/(\d{10}\.\d{3}|\d+-\d+-\d+ \d+:\d+:\d+)[\.0-9]*(?: [A-Z\+\-\d]{3,6})? \[([0-9a-f\.]+)\][:]*\s+(.*?)\s+(LOG|WARNING|ERROR|FATAL|PANIC|DETAIL|STATEMENT|HINT|CONTEXT):\s+/ +/(\d{10}\.\d{3}|\d+-\d+-\d+ \d+:\d+:\d+)[\.0-9]*(?: [A-Z\+\-\d]{3,6})? \[([0-9a-f\.]+)\][:]*\s+(.*?)(LOG|WARNING|ERROR|FATAL|PANIC|DETAIL|STATEMENT|HINT|CONTEXT):\s+/ ) { $fmt = 'default'; -- 2.40.0