fix _isLogEnabled