[mapserver-users] MapServer Errors in APACHE logs.

Andy Colson andy at squeakycode.net
Tue Apr 29 13:14:56 PDT 2014


On 4/29/2014 1:55 PM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a
> MapServer mis-config (textual error page) and a successful image
> response.   The idea is to somehow log those textual message responses
> in an automated way through Apache.
>
> I’m pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response
> filters, at least from the APACHE point of view . . ..  Is a MapServer
> Text based error page considered for inclusion in the Apache error log or??
>
> Thanks.
>
> Bobb
>


Have you checked your apache error log?  I'm running perl as fastcgi, 
and I get things like:

mod_fcgid: stderr:  maps.pl: msWMSLoadGetMapParams(): WMS server error. 
Invalid layer(s) given in the LAYERS parameter. A layer might be 
disabled for this request. Check wms/ows_enable_request settings.

The text vs raster response is only for sending errors to the browser, 
it wont affect whats written to the error log.

I think writing a thing to watch the error log is your best bet.  You 
could "simulate" some errors and see how it shows up in the error log.

-Andy


More information about the mapserver-users mailing list