first pass at debug logging
ensure leek is provided a unique ID
Merge pull request #2467 from stefanpenner/debug

first pass at adding debug logging