added log_print to handle output from yum/restart loops