[mapserver-users] problem reading log/debug
Daniel Morissette
dmorissette at mapgears.com
Thu Jul 23 18:43:23 PDT 2009
jim white wrote:
> I can use a file instead of stderr and have the same problem - restart
> apache to see the logs.
>
Um... the only reason I can think of for this to happen would be if your
mapserv processes hang and never close/flush the log output. Actually,
are you using the mapserv CGI or MapScript? On which OS is this happening?
If you built from source, you could possibly work around the problem by
adding a fflush() call in msDebug() after the msIO_vfprintf() line. That
could keep you going but would not solve the key issue which seems to be
that your processes possibly hang or something like that. We'd need more
info to help with that.
Index: mapdebug.c
===================================================================
--- mapdebug.c (revision 9170)
+++ mapdebug.c (working copy)
@@ -360,6 +360,7 @@
va_start(args, pszFormat);
msIO_vfprintf(debuginfo->fp, pszFormat, args);
+ fflush(debuginfo->fp);
va_end(args);
}
#ifdef _WIN32
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list