Feature/log ip addresses

Fixes #339