switch to use logger.info
test against hostname AND ip