Attach the current stack to a log message.
Section: Logging Core Patterns
Include stack info in a log call
python
python
logger.warning("Unexpected state", stack_info=True)Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logging Core Patterns