Only printout stacktraces in non debug builds.