def process_signals(signal, **kw):
    # We need to batch up all signals here and then send them when the
    # request is finished. This allows us to pass through the request
    # to the reporters, allowing more detailed logs.
    if setup():
        return

    for data in _locals.signals:
        process.send(request=kw['request'], **data)
def process_signals(signal, **kw):
    # We need to batch up all signals here and then send them when the
    # request is finished. This allows us to pass through the request
    # to the reporters, allowing more detailed logs.
    if setup():
        return

    for data in _locals.signals:
        process.send(request_path=kw['request_path'],
                     request_meta=kw['request_meta'], **data)
示例#3
0
 def wrapper(*args, **kwargs):
     res = func(*args, **kwargs)
     process.send(None)
     return res
示例#4
0
def send():
    yield
    process.send(None)