pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[PATCH v4 1/1] Add hint message for check_log_destination
1+ messages / 1 participants
[nested] [flat]

* [PATCH v4 1/1] Add hint message for check_log_destination
@ 2023-07-14 01:26 Japin Li <japinli@hotmail.com>
  0 siblings, 0 replies; 1+ messages in thread

From: Japin Li @ 2023-07-14 01:26 UTC (permalink / raw)

---
 src/backend/utils/error/elog.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

inline patch 1: src/backend/utils/error/elog.c (+14/-0 lines) download inline-1.patchdiff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 5898100acb..dccbabf40a 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -2228,8 +2228,22 @@ check_log_destination(char **newval, void **extra, GucSource source) #endif else { + StringInfoData errhint; + + initStringInfo(&errhint); + appendStringInfoString(&errhint, "stderr"); +#ifdef HAVE_SYSLOG + appendStringInfoString(&errhint, ", syslog"); +#endif +#ifdef WIN32 + appendStringInfoString(&errhint, ", eventlog"); +#endif + appendStringInfoString(&errhint, ", csvlog, and jsonlog"); + GUC_check_errdetail("Unrecognized key word: \"%s\".", tok); + GUC_check_errhint("Valid values are combinations of %s.", errhint.data); pfree(rawstring); + pfree(errhint.data); list_free(elemlist); return false; } -- 2.41.0
--=-=-=-- ^ permalink raw reply [nested|flat] 1+ messages in thread


only message in thread

Thread overview: 1+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14 01:26 [PATCH v4 1/1] Add hint message for check_log_destination Japin Li <japinli@hotmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox