Fix logDebug isLog logic bug.