Add advanced logging to pusher.js module