CB-7803 change console.log to events.emit