mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Make debug_ GUC varables output DEBUG1 rather than LOG, and mention in
docs that CLIENT/LOG_MIN_MESSAGES now controls debug_* output location. Doc changes included.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.14 2002/11/08 20:23:57 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.15 2003/05/27 17:49:46 momjian Exp $
|
||||
*/
|
||||
|
||||
%{
|
||||
@@ -136,7 +136,7 @@ ProcessConfigFile(GucContext context)
|
||||
Assert(context == PGC_POSTMASTER || context == PGC_BACKEND
|
||||
|| context == PGC_SIGHUP);
|
||||
Assert(DataDir);
|
||||
elevel = (context == PGC_SIGHUP) ? DEBUG3 : ERROR;
|
||||
elevel = (context == PGC_SIGHUP) ? DEBUG4 : ERROR;
|
||||
|
||||
/*
|
||||
* Open file
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.124 2003/05/14 03:26:02 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.125 2003/05/27 17:49:46 momjian Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1721,7 +1721,7 @@ set_config_option(const char *name, const char *value,
|
||||
bool makeDefault;
|
||||
|
||||
if (context == PGC_SIGHUP || source == PGC_S_DEFAULT)
|
||||
elevel = DEBUG1;
|
||||
elevel = DEBUG2;
|
||||
else if (source == PGC_S_DATABASE || source == PGC_S_USER)
|
||||
elevel = INFO;
|
||||
else
|
||||
@@ -1830,7 +1830,7 @@ set_config_option(const char *name, const char *value,
|
||||
{
|
||||
if (DoIt && !makeDefault)
|
||||
{
|
||||
elog(DEBUG2, "%s: setting ignored because previous source is higher priority",
|
||||
elog(DEBUG3, "%s: setting ignored because previous source is higher priority",
|
||||
name);
|
||||
return true;
|
||||
}
|
||||
@@ -2855,7 +2855,7 @@ write_nondefault_variables(GucContext context)
|
||||
|
||||
Assert(context == PGC_POSTMASTER || context == PGC_SIGHUP);
|
||||
Assert(DataDir);
|
||||
elevel = (context == PGC_SIGHUP) ? DEBUG3 : ERROR;
|
||||
elevel = (context == PGC_SIGHUP) ? DEBUG4 : ERROR;
|
||||
|
||||
/*
|
||||
* Open file
|
||||
@@ -3366,7 +3366,7 @@ assign_msglvl(int *var, const char *newval, bool doit, bool interactive)
|
||||
if (strcasecmp(newval, "debug") == 0)
|
||||
{
|
||||
if (doit)
|
||||
(*var) = DEBUG1;
|
||||
(*var) = DEBUG2;
|
||||
}
|
||||
else if (strcasecmp(newval, "debug5") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user