def test_debug_mode(self): clear_handlers() app = Zask(__name__) app.config = self.default_config init_zerorpc(app) print "" channel_logger.error("error") gevent_logger.error("error") core_logger.error("error")
def test_prod_mode(self): clear_handlers() app = Zask(__name__) app.config = self.default_config app.config['DEBUG'] = False init_zerorpc(app) channel_logger.error("error") gevent_logger.error("error") core_logger.error("error") print "" print "printing file:" with open(app.config['ERROR_LOG'], 'r') as fin: print fin.read()