3 ms·
I suppose you could concat strings and do it in a finally clause? Or use python’s context managers and do the logging in the __exit__().
by pletnes 8y ago
I suppose you could concat strings and do it in a finally clause? Or use python’s context managers and do the logging in the __exit__().
- Waterluvian 8y agoExactly my thinking. And the context wraps the view call and therefore the whole transaction.