Add debugNotify method

This will DRY up a lot of the debug logging
code and be a bit more concise