[postgis-tickets] r15652 - #3662, write all notice/debug messages to stderr by default
Paul Ramsey
pramsey at cleverelephant.ca
Thu Sep 7 05:23:13 PDT 2017
Author: pramsey
Date: 2017-09-07 05:23:13 -0700 (Thu, 07 Sep 2017)
New Revision: 15652
Modified:
trunk/liblwgeom/lwutil.c
Log:
#3662, write all notice/debug messages to stderr by default
Modified: trunk/liblwgeom/lwutil.c
===================================================================
--- trunk/liblwgeom/lwutil.c 2017-09-07 07:37:45 UTC (rev 15651)
+++ trunk/liblwgeom/lwutil.c 2017-09-07 12:23:13 UTC (rev 15652)
@@ -119,7 +119,7 @@
char msg[LW_MSG_MAXLEN+1];
vsnprintf (msg, LW_MSG_MAXLEN, fmt, ap);
msg[LW_MSG_MAXLEN]='\0';
- printf("%s\n", msg);
+ fprintf(stderr, "%s\n", msg);
}
static void
@@ -134,11 +134,11 @@
msg[i] = ' ';
vsnprintf(msg+i, LW_MSG_MAXLEN-i, fmt, ap);
msg[LW_MSG_MAXLEN]='\0';
- printf("%s\n", msg);
+ fprintf(stderr, "%s\n", msg);
}
}
-static void
+static void
default_errorreporter(const char *fmt, va_list ap)
{
char msg[LW_MSG_MAXLEN+1];
More information about the postgis-tickets
mailing list