HH-30380 fix for debug=pass
updates for compatibility with tornado 3.1