Closed allynt closed 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.
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.
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.