Hacker News new | past | comments | ask | show | jobs | submit login

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__().



Exactly my thinking. And the context wraps the view call and therefore the whole transaction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: