Updated log to use debug->debugging instead of debug->debugMode