Exemplo n.º 1
0
def teardown_request(e):
    if e is not None:
        logger.error(Logger.dumps(t='exception', e=str(e)))
Exemplo n.º 2
0
def teardown_request(e):
    if e is not None:
        logger.error(Logger.dumps(t='exception', e=str(e)))
Exemplo n.º 3
0
def before_request():
    """如果HTTP Body为Json数据,需要设置Header
        Content-Type: application/json
    """
    logger.info(Logger.dumps(t='req'))
    request.on_json_loading_failed = on_json_loading_failed
Exemplo n.º 4
0
def before_request():
    """如果HTTP Body为Json数据,需要设置Header
        Content-Type: application/json
    """
    logger.info(Logger.dumps(t='req'))
    request.on_json_loading_failed = on_json_loading_failed