aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/misc/guc.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index af73fd18673..b9865462a4e 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.223 2004/07/21 20:34:46 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.224 2004/07/24 19:51:23 tgl Exp $
*
*--------------------------------------------------------------------
*/
@@ -1625,8 +1625,8 @@ static struct config_string ConfigureNamesString[] =
},
{
- {"log_destination", PGC_POSTMASTER, LOGGING_WHERE,
- gettext_noop("Sets the target for log output."),
+ {"log_destination", PGC_SIGHUP, LOGGING_WHERE,
+ gettext_noop("Sets the destination for server log output."),
gettext_noop("Valid values are combinations of stderr, syslog "
"and eventlog, depending on platform."),
GUC_LIST_INPUT
@@ -5099,15 +5099,12 @@ assign_log_destination(const char *value, bool doit, GucSource source)
}
}
+ if (doit)
+ Log_destination = newlogdest;
+
pfree(rawstring);
list_free(elemlist);
- /* If we aren't going to do the assignment, just return OK indicator. */
- if (!doit)
- return value;
-
- Log_destination = newlogdest;
-
return value;
}