Fix log message showing when disabled