diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java index 4181059..341bb7b 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java @@ -385,7 +385,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher logger.info("{} successfully created", r); return r; } catch (Exception e) { - logger.error("Error Creating Facet", e); + logger.error("Error Creating {}", resource, e); throw new ServiceException(e); } } @@ -455,7 +455,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher logger.info("{} successfully created", c); return c; } catch (Exception e) { - logger.error("Error Creating Facet", e); + logger.error("Error Creating {}", consistsOf, e); throw new ServiceException(e); } } @@ -529,7 +529,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher logger.info("{} successfully created", i); return i; } catch (Exception e) { - logger.error("Error Creating Facet", e); + logger.error("Error Creating {}", isRelatedTo, e); throw new ServiceException(e); } }