And print stack traces to the log.