Logging improvements

Debug info logging according to wild IP catching
Merge pull request #769 from teran/master

Logging improvements