From 9ed1027b67e61b13b40bae95b98f9e19e4e20407 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Mon, 26 Sep 2016 08:32:03 +0000 Subject: [PATCH] fix to existsProductWithNameOrId method git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131771 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java index 42b60b4..39b0777 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java @@ -1063,11 +1063,11 @@ public class CKanUtilsImpl implements CKanUtils{ checkArgument(!nameOrId.isEmpty()); try{ - // check if exists + CheckedCkanClient client = new CheckedCkanClient(CKAN_CATALOGUE_URL, CKAN_TOKEN_SYS); CkanDataset product = client.getDataset(nameOrId); return product != null; }catch(Exception e){ - logger.error("Unable to retrieve dataset information", e); + logger.debug("", e); return false; } }