ES-DOC / esdoc-questionnaire

ES-DOC Questionnaire (webform generator for creating CIM Documents). POC: @allynt
Other
2 stars 1 forks source link

Enable logging. #427

Closed allynt closed 8 years ago

allynt commented 8 years ago

The Q deployments on webfaction run under mod_wsgi which is providing very little in the way of logging. In fact, explicit {{{print}} statements do not appear. Presumably, this is b/c stderr is not routed through the wsgi process. There are two solutions to this:

1) figure out how to route stderr to the logs that wsgi uses. 2) setup a formal logging feature for the Q.

allynt commented 8 years ago

This is required to help w/ debugging. Specifically, @murphysj is experiencing "502: Bad Gateway Errors" when repeatedly saving ESPS instances. I cannot replicate this on my local server.

allynt commented 8 years ago

Formal Django logging system has been setup. Simply run q_logger.info('msg') and it will write "msg" to a log w/ a timestamp plus file/function location. Logs are rotated every 8 MB.