Log preferred hosts
Fixing if/else coding style for preferred hosts logging
Merge pull request #344 from mbautin/log_preferred_hosts

Log preferred hosts