Do not spend the effort on a stack trace if omitCallerDetails is set