Suppress timezone output on log_line_prefix %t on Win32, because it is

too long.
This commit is contained in:
Bruce Momjian 2004-10-09 01:24:47 +00:00
parent d157f4c26a
commit abc1d28ba7

View File

@ -42,7 +42,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.152 2004/10/07 15:21:54 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.153 2004/10/09 01:24:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1391,7 +1391,12 @@ log_line_prefix(StringInfo buf)
char strfbuf[128];
strftime(strfbuf, sizeof(strfbuf),
/* Win32 timezone names are too long so don't print them. */
#ifndef WIN32
"%Y-%m-%d %H:%M:%S %Z",
#else
"%Y-%m-%d %H:%M:%S",
#endif
localtime(&stamp_time));
appendStringInfoString(buf, strfbuf);
}