Improve stack trace printing when debug level is finest