Adding debug statements to stream sockets channel.