fix debug logic
Merge pull request #9 from Pardot/socket-read-debug

fix debug logic