trying to unbuffer $log_fh