Only print to log file if the error conditions are met.