MCPcopy Create free account
hub / github.com/hynek/structlog / make_call_stack_more_impressive

Function make_call_stack_more_impressive

show_off.py:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def make_call_stack_more_impressive():
41 try:
42 d = {"x": 42}
43 print(SomeClass(d["y"], "foo"))
44 except Exception:
45 log2.exception("poor me")
46 log.info("all better now!", stack_info=True)
47
48
49make_call_stack_more_impressive()

Callers 1

show_off.pyFile · 0.85

Calls 3

SomeClassClass · 0.85
exceptionMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…