Fixing logs

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@146916 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-04-18 08:54:18 +00:00
parent 40cd2da39a
commit fcd12e945b
1 changed files with 28 additions and 28 deletions

View File

@ -86,10 +86,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return f;
} catch (ResourceRegistryException e) {
//logger.error("Error Creating {}", facet, e);
//logger.trace("Error Creating {}", facet, e);
throw e;
} catch (Exception e) {
//logger.error("Error Creating {}", facet, e);
//logger.trace("Error Creating {}", facet, e);
throw new RuntimeException(e);
}
}
@ -116,10 +116,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return f;
} catch (ResourceRegistryException e) {
//logger.error("Error Updating {}", facet, e);
//logger.trace("Error Updating {}", facet, e);
throw e;
} catch (Exception e) {
//logger.error("Error Updating {}", facet, e);
//logger.trace("Error Updating {}", facet, e);
throw new RuntimeException(e);
}
}
@ -145,10 +145,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return deleted;
} catch (ResourceRegistryException e) {
//logger.error("Error Removing {}", facet, e);
//logger.trace("Error Removing {}", facet, e);
throw e;
} catch (Exception e) {
//logger.error("Error Removing {}", facet, e);
//logger.trace("Error Removing {}", facet, e);
throw new RuntimeException(e);
}
}
@ -177,11 +177,11 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return r;
} catch (ResourceRegistryException e) {
//logger.error("Error Creating {}", resource, e);
//logger.trace("Error Creating {}", resource, e);
throw e;
} catch (Exception e) {
//logger.error("Error Creating {}", resource, e);
//logger.trace("Error Creating {}", resource, e);
throw new RuntimeException(e);
}
}
@ -209,10 +209,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return r;
} catch (ResourceRegistryException e) {
//logger.error("Error Creating {}", resource, e);
//logger.trace("Error Creating {}", resource, e);
throw e;
} catch (Exception e) {
//logger.error("Error Creating {}", resource, e);
//logger.trace("Error Creating {}", resource, e);
throw new RuntimeException(e);
}
}
@ -238,10 +238,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return deleted;
} catch (ResourceRegistryException e) {
//logger.error("Error Removing {}", resource, e);
//logger.trace("Error Removing {}", resource, e);
throw e;
} catch (Exception e) {
//logger.error("Error Removing {}", resource, e);
//logger.trace("Error Removing {}", resource, e);
throw new RuntimeException(e);
}
}
@ -280,10 +280,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return c;
} catch (ResourceRegistryException e) {
//logger.error("Error Creating {}", consistsOf, e);
//logger.trace("Error Creating {}", consistsOf, e);
throw e;
} catch (Exception e) {
//logger.error("Error Creating {}", consistsOf, e);
//logger.trace("Error Creating {}", consistsOf, e);
throw new RuntimeException(e);
}
}
@ -316,10 +316,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return deleted;
} catch (ResourceRegistryException e) {
//logger.error("Error Removing {} with UUID {}", ConsistsOf.NAME, uuid, e);
//logger.trace("Error Removing {} with UUID {}", ConsistsOf.NAME, uuid, e);
throw e;
} catch (Exception e) {
//logger.error("Error Removing {} with UUID {}", ConsistsOf.NAME, uuid, e);
//logger.trace("Error Removing {} with UUID {}", ConsistsOf.NAME, uuid, e);
throw new RuntimeException(e);
}
}
@ -359,10 +359,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return i;
} catch (ResourceRegistryException e) {
//logger.error("Error Creating {}", isRelatedTo, e);
//logger.trace("Error Creating {}", isRelatedTo, e);
throw e;
} catch (Exception e) {
//logger.error("Error Creating {}", isRelatedTo, e);
//logger.trace("Error Creating {}", isRelatedTo, e);
throw new RuntimeException(e);
}
}
@ -394,10 +394,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return deleted;
} catch (ResourceRegistryException e) {
//logger.error("Error Removing {} with UUID {}", IsRelatedTo.NAME, uuid, e);
//logger.trace("Error Removing {} with UUID {}", IsRelatedTo.NAME, uuid, e);
throw e;
} catch (Exception e) {
//logger.error("Error Removing {} with UUID {}", IsRelatedTo.NAME, uuid, e);
//logger.trace("Error Removing {} with UUID {}", IsRelatedTo.NAME, uuid, e);
throw new RuntimeException(e);
}
}
@ -433,11 +433,11 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return added;
} catch (ResourceRegistryException e) {
//logger.error("Error Adding {} with UUID {} to current {} : {}",
//logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Resource.NAME, uuid, Context.NAME, context, e);
throw e;
} catch (Exception e) {
//logger.error("Error Adding {} with UUID {} to current {} : {}",
//logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Resource.NAME, uuid, Context.NAME, context, e);
throw new RuntimeException(e);
}
@ -479,11 +479,11 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return added;
} catch (ResourceRegistryException e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Facet.NAME, uuid, Context.NAME, context, e);
throw e;
} catch (Exception e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Facet.NAME, uuid, Context.NAME, context, e);
throw new RuntimeException(e);
}
@ -526,12 +526,12 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return removed;
} catch (ResourceRegistryException e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Resource.NAME, uuid, Context.NAME, context, e);
throw e;
} catch (Exception e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Resource.NAME, uuid, Context.NAME, context, e);
throw new RuntimeException(e);
}
@ -575,11 +575,11 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
return removed;
} catch (ResourceRegistryException e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Facet.NAME, uuid, Context.NAME, context, e);
throw e;
} catch (Exception e) {
// logger.error("Error Adding {} with UUID {} to current {} : {}",
// logger.trace("Error Adding {} with UUID {} to current {} : {}",
// Facet.NAME, uuid, Context.NAME, context, e);
throw new RuntimeException(e);
}