add debug traces for http-upgrade code
Merge pull request #1445 from jmesnil/http-upgrade_debug

add debug traces for http-upgrade code