fix empty hostname in log file