Added some additional logging to setup_session().
Merge pull request #23 from flexiondotorg/master

Added some additional logging to setup_session().