Revert "Revert "Merge pull request #2585 from coyote/coyote/add_proxy_logging_code""

This reverts commit 73c9ebad13e84b360d35eb7dbc8368a945494fdb.