Skip to content
Snippets Groups Projects
Commit 2abf130a authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 7953fdcd
Branches
Tags
No related merge requests found
<!-- $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"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
...@@ -2582,7 +2582,7 @@ local0.* /var/log/postgresql ...@@ -2582,7 +2582,7 @@ local0.* /var/log/postgresql
<literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and <literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and
<literal>PANIC</>. Each level includes all the levels that <literal>PANIC</>. Each level includes all the levels that
follow it. The later the level, the fewer messages are sent 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 <literal>LOG</> has a different rank here than in
<varname>client_min_messages</>. <varname>client_min_messages</>.
Only superusers can change this setting. Only superusers can change this setting.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * 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; ...@@ -209,7 +209,7 @@ bool SQL_inheritance = true;
bool Password_encryption = true; bool Password_encryption = true;
int log_min_error_statement = ERROR; int log_min_error_statement = ERROR;
int log_min_messages = NOTICE; int log_min_messages = WARNING;
int client_min_messages = NOTICE; int client_min_messages = NOTICE;
int log_min_duration_statement = -1; int log_min_duration_statement = -1;
int log_temp_files = -1; int log_temp_files = -1;
...@@ -1935,7 +1935,7 @@ static struct config_string ConfigureNamesString[] = ...@@ -1935,7 +1935,7 @@ static struct config_string ConfigureNamesString[] =
"includes all the levels that follow it.") "includes all the levels that follow it.")
}, },
&log_min_messages_str, &log_min_messages_str,
"notice", assign_log_min_messages, NULL "warning", assign_log_min_messages, NULL
}, },
{ {
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
# warning # warning
# error # error
#log_min_messages = notice # values in order of decreasing detail: #log_min_messages = warning # values in order of decreasing detail:
# debug5 # debug5
# debug4 # debug4
# debug3 # debug3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment