Python Logging Exception Stack Overflow