#5859 avoiding pollution of the log file with stack traces