Пример #1
0
def foo():
    logstack.push(in_foo=True)
    bar()
    logstack.push(out_of_bar=True)
    baz()
Пример #2
0
def bar():
    logstack.push(in_bar=True)
Пример #3
0
def baz():
    logstack.push(in_baz=True)
    with logstack.pushed(something=[1, 2, 3]):
        logging.warning("warning here")
    raise ValueError("ohno")
Пример #4
0
def foo():
    logstack.push(in_foo=True)
    bar()
    logstack.push("out of bar")
    baz()