From: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Frontend error logging style |
Date: | 2022-05-23 09:53:04 |
Message-ID: | ba6d4fac-9e33-91f9-94fb-1e4c144a48b9@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 29.03.22 16:24, Peter Eisentraut wrote:
> I think I would want the program name/location also in front of the
> detail and hint lines. I need to think about this a bit more. This
> shouldn't hold up this patch; it would be a quick localized change.
After experiencing this for a bit now, I propose to make this change.
It lines up better and allows easier filtering of messages by program.
Example:
Before:
initdb: error: locale "zh_HK.Big5HKSCS" requires unsupported encoding "BIG5"
detail: Encoding "BIG5" is not allowed as a server-side encoding.
hint: Rerun initdb with a different locale selection.
After:
initdb: error: locale "zh_HK.Big5HKSCS" requires unsupported encoding "BIG5"
initdb: detail: Encoding "BIG5" is not allowed as a server-side encoding.
initdb: hint: Rerun initdb with a different locale selection.
Attachment | Content-Type | Size |
---|---|---|
0001-logging-Also-add-the-command-prefix-to-detail-and-hi.patch | text/plain | 1.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2022-05-23 11:11:47 | Re: create_help.pl treats <literal> as replaceable |
Previous Message | kuroda.hayato@fujitsu.com | 2022-05-23 09:30:25 | RE: Multi-Master Logical Replication |