Fix #1787(logging): create gridUtil.logDebug, comment out all debug

Replaces #1823, merge conflicts