Get pre_get to work and make session logs when adapter changes
Merge pull request #6831 from Carreau/fix-yield

Fix for Websocket.pre_get on tornado 3