BZ797: Add fix for logging nested exception traces