debug logging events
added discovery debug events and logging