log exceptions with tracebacks