Fixed an error with logging tracebacks