Ignore:
Timestamp:
18/09/09 09:47:28 (10 years ago)
Author:
pnorton
Message:

Added some wms request logging that writes the parameeters and the header information to a file. Hopefully this will enable statistics to be generated on the data usage.

Also made some changes to the demo page so that it works in IE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwms.py

    r5701 r5734  
    1313 
    1414from wms_ddc_vis.lib.base import request, response 
     15from wms_ddc_vis.lib.wms_request_log_utils import buildLogString, wms_request_logger 
    1516 
    1617log = logging.getLogger(__name__) 
     
    2425                     'application/pdf':'pdf', 
    2526                     'image/svg+xml':'svg'} 
    26      
     27 
     28    def __before__(self, **kwargs): 
     29        wms_request_logger.info( buildLogString(request) ) 
     30        WMSController.__before__(self, **kwargs) 
     31   
    2732    def _loadCapabilities(self, *args, **kwargs): 
    2833        ows_controller.addOperation('GetDisplayOptions', formats=['application/json']) 
Note: See TracChangeset for help on using the changeset viewer.