Log state check errors (and other logError calls) to debug output