Added logging to the mapserver to help with debugging.