equal
deleted
inserted
replaced
191 content = self.appli.loggedout_content(req) |
191 content = self.appli.loggedout_content(req) |
192 else: |
192 else: |
193 content = self.appli.need_login_content(req) |
193 content = self.appli.need_login_content(req) |
194 return WSGIResponse(code, req, content) |
194 return WSGIResponse(code, req, content) |
195 |
195 |
|
196 # these are overridden by set_log_methods below |
|
197 # only defining here to prevent pylint from complaining |
|
198 info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None |
|
199 |
196 |
200 |
197 from logging import getLogger |
201 from logging import getLogger |
198 from cubicweb import set_log_methods |
202 from cubicweb import set_log_methods |
199 set_log_methods(CubicWebWSGIApplication, getLogger('cubicweb.wsgi')) |
203 set_log_methods(CubicWebWSGIApplication, getLogger('cubicweb.wsgi')) |