mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Increase the default value of log_min_messages to WARNING, so that
NOTICE-grade messages are not logged by default. Per pgsql-hackers discussion back on 21-Nov-2007.
This commit is contained in:
parent
7953fdcd9e
commit
2abf130a4e
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.168 2008/03/09 04:56:28 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.169 2008/03/10 03:22:29 tgl Exp $ -->
|
||||
|
||||
<chapter Id="runtime-config">
|
||||
<title>Server Configuration</title>
|
||||
@ -2582,7 +2582,7 @@ local0.* /var/log/postgresql
|
||||
<literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and
|
||||
<literal>PANIC</>. Each level includes all the levels that
|
||||
follow it. The later the level, the fewer messages are sent
|
||||
to the log. The default is <literal>NOTICE</>. Note that
|
||||
to the log. The default is <literal>WARNING</>. Note that
|
||||
<literal>LOG</> has a different rank here than in
|
||||
<varname>client_min_messages</>.
|
||||
Only superusers can change this setting.
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.434 2008/03/09 04:56:28 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.435 2008/03/10 03:22:29 tgl Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -209,7 +209,7 @@ bool SQL_inheritance = true;
|
||||
bool Password_encryption = true;
|
||||
|
||||
int log_min_error_statement = ERROR;
|
||||
int log_min_messages = NOTICE;
|
||||
int log_min_messages = WARNING;
|
||||
int client_min_messages = NOTICE;
|
||||
int log_min_duration_statement = -1;
|
||||
int log_temp_files = -1;
|
||||
@ -1935,7 +1935,7 @@ static struct config_string ConfigureNamesString[] =
|
||||
"includes all the levels that follow it.")
|
||||
},
|
||||
&log_min_messages_str,
|
||||
"notice", assign_log_min_messages, NULL
|
||||
"warning", assign_log_min_messages, NULL
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -278,7 +278,7 @@
|
||||
# warning
|
||||
# error
|
||||
|
||||
#log_min_messages = notice # values in order of decreasing detail:
|
||||
#log_min_messages = warning # values in order of decreasing detail:
|
||||
# debug5
|
||||
# debug4
|
||||
# debug3
|
||||
|
Loading…
Reference in New Issue
Block a user