From: Tom Lane Date: Fri, 28 May 2004 03:11:15 +0000 (+0000) Subject: Make sure elog behaves sanely if invoked before GUC initializes. X-Git-Tag: REL8_0_0BETA1~504 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=2ac8c96ecb5d01553c289dbe07325a6f07182b66;p=postgresql.git Make sure elog behaves sanely if invoked before GUC initializes. --- diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index d7e5a983763..b76c4cb88b0 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.137 2004/05/21 05:08:02 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.138 2004/05/28 03:11:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -69,7 +69,7 @@ ErrorContextCallback *error_context_stack = NULL; /* GUC parameters */ PGErrorVerbosity Log_error_verbosity = PGERROR_VERBOSE; char *Log_line_prefix = NULL; /* format for extra log line info */ -unsigned int Log_destination; +unsigned int Log_destination = LOG_DESTINATION_STDERR; bool in_fatal_exit = false;