Logging added

Trying to track down issue as to why the server url isn't being set
properly when switching to pt.