Log the stack trace.