do not get the hostname for every message
Merge pull request #3 from danmilon/feature-get-hostname-once

do not get the hostname for every message