diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-06 06:10:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-06 06:10:59 +0000 |
commit | 92288a1cf9490be3835dc8524ee2ba407f1b885a (patch) | |
tree | c4fe79ee2cb5cb8fa3385580c6cf431a97c2fc48 /src/backend/utils/adt/pg_locale.c | |
parent | 22ebad9e39e268c9d4c6c2e422af727058830089 (diff) |
Change made to elog:
o Change all current CVS messages of NOTICE to WARNING. We were going
to do this just before 7.3 beta but it has to be done now, as you will
see below.
o Change current INFO messages that should be controlled by
client_min_messages to NOTICE.
o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
to always go to the client.
o Remove INFO from the client_min_messages options and add NOTICE.
Seems we do need three non-ERROR elog levels to handle the various
behaviors we need for these messages.
Regression passed.
Diffstat (limited to 'src/backend/utils/adt/pg_locale.c')
-rw-r--r-- | src/backend/utils/adt/pg_locale.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 9952f01714a..2c86ff5bcf1 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -4,7 +4,7 @@ * The PostgreSQL locale utils. * * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.14 2002/03/02 21:39:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.15 2002/03/06 06:10:14 momjian Exp $ * * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group * @@ -119,28 +119,28 @@ static void PGLC_setlocale(PG_LocaleCategories *lc) { if (!setlocale(LC_COLLATE, lc->lc_collate)) - elog(NOTICE, "pg_setlocale(): 'LC_COLLATE=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_COLLATE=%s' cannot be honored.", lc->lc_collate); if (!setlocale(LC_CTYPE, lc->lc_ctype)) - elog(NOTICE, "pg_setlocale(): 'LC_CTYPE=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_CTYPE=%s' cannot be honored.", lc->lc_ctype); if (!setlocale(LC_NUMERIC, lc->lc_numeric)) - elog(NOTICE, "pg_setlocale(): 'LC_NUMERIC=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_NUMERIC=%s' cannot be honored.", lc->lc_numeric); if (!setlocale(LC_TIME, lc->lc_time)) - elog(NOTICE, "pg_setlocale(): 'LC_TIME=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_TIME=%s' cannot be honored.", lc->lc_time); if (!setlocale(LC_MONETARY, lc->lc_monetary)) - elog(NOTICE, "pg_setlocale(): 'LC_MONETARY=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_MONETARY=%s' cannot be honored.", lc->lc_monetary); #ifdef LC_MESSAGES if (!setlocale(LC_MESSAGES, lc->lc_messages)) - elog(NOTICE, "pg_setlocale(): 'LC_MESSAGES=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_MESSAGES=%s' cannot be honored.", lc->lc_messages); #endif } |