Bug 974984 - Added basic debug logging r=julienw