(#1402) Tracebacks for logging exceptions occuring in generators.py.

This adds tracebacks to the exception messages versus string formatting
the exception.