]> granicus.if.org Git - pgbadger/commitdiff
Fix autodetection of pg>=10 defauilt log line prefix.
authorGilles Darold <gilles.darold@dalibo.com>
Fri, 8 Feb 2019 10:43:34 +0000 (11:43 +0100)
committerGilles Darold <gilles.darold@dalibo.com>
Fri, 8 Feb 2019 10:43:34 +0000 (11:43 +0100)
pgbadger

index 7ebd36c4545b3d6808a00bfa8aa7ad2cf9d3bb8b..46a02e9ad4223f9b72cbb4c847617d8f4dc08a28 100755 (executable)
--- 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';