> You can get more feedback by adjusting TF_LOG env var.
yep, but that's often enough useless after the fact. In the PHP world, for example, there's Symfony/Monolog's `fingers_crossed` logger [1]... it keeps logs below the normal threshold in memory, but if there is a single event of a given severity or worse, it dumps out all the logs it has ingested so far for this request.
A real lifesaver that one is.
[1] https://symfony.com/doc/current/logging.html