Revision 51496
Added by Alessia Bardi about 6 years ago
modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/catalogue/CatalogueRegistrator.java | ||
---|---|---|
85 | 85 |
throw new IllegalArgumentException(String.format("Type " + type.getLocalName() + " not supported")); |
86 | 86 |
} |
87 | 87 |
String uuid = catalogueAPIClient.doRegister(json, resCatName); |
88 |
log.debug(String.format("%s registered on the catalogue with uuid: %s", resURI, uuid)); |
|
88 |
if(StringUtils.isBlank(uuid)){ |
|
89 |
log.warn(String.format("%s could not be registered", resURI)); |
|
90 |
} |
|
91 |
else { |
|
92 |
log.debug(String.format("%s registered on the catalogue with uuid: %s", resURI, uuid)); |
|
93 |
} |
|
89 | 94 |
return uuid; |
90 | 95 |
} |
91 | 96 |
|
Also available in: Unified diff
Log when the resource could not be registered in the catalogue and hence we get a blank uuid