Commit abc1d28b authored by Bruce Momjian's avatar Bruce Momjian

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

too long.
parent d157f4c2
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -1391,7 +1391,12 @@ log_line_prefix(StringInfo buf)
char strfbuf[128]; char strfbuf[128];
strftime(strfbuf, sizeof(strfbuf), strftime(strfbuf, sizeof(strfbuf),
/* Win32 timezone names are too long so don't print them. */
#ifndef WIN32
"%Y-%m-%d %H:%M:%S %Z", "%Y-%m-%d %H:%M:%S %Z",
#else
"%Y-%m-%d %H:%M:%S",
#endif
localtime(&stamp_time)); localtime(&stamp_time));
appendStringInfoString(buf, strfbuf); appendStringInfoString(buf, strfbuf);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment