Log error stack trace.