Add debugNotify method

This will DRY up a lot of the debug logging
code and be a bit more concise
Merge pull request #206 from cpjolicoeur/master

Add cleaner debugNotify method