loguru/tests/exceptions/source/backtrace/frame_values_forward.py

25 lines
237 B
Python

import sys
from loguru import logger
logger.remove()
logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False)
k = 2
def a(n):
1 / n
def b(n):
a(n - 1)
@logger.catch
def c(n):
b(n - 1)
c(k)