Adding the logging for debug in the emitter.