With Pytest and Lambda Powertools installed, run the following command to have human readable and highlighted log statements including stack traces:
POWERTOOLS_LOG_DEDUPLICATION_DISABLED="1" pytest -o log_cli=1 prod_no_swap.pyOutput should look like this:
