stream.js: debug log