Log the entire stack trace in case of exception