Upgrade logger.debug to logger.warn statement when hostname verification is disabled.
Remove useless import.