added log

This commit is contained in:
Fabio Sinibaldi 2022-08-04 16:48:49 +02:00
parent c601dcdda6
commit fc0f4e6411
1 changed files with 2 additions and 0 deletions

View File

@ -728,6 +728,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
private Project deleteFileSetRoutine(Project doc,Boolean force, String path) throws ConfigurationException, StorageHubException {
log.info("Delete[force : {}] FS at {} for {}:{}",force,path,doc.getProfileID(),doc.getId());
JSONPathWrapper wrapper = new JSONPathWrapper(doc.getTheDocument().toJson());
List<String> matchingPaths = wrapper.getMatchingPaths(path);
if (matchingPaths.isEmpty())
@ -735,6 +736,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
if (matchingPaths.size() > 1)
throw new WebApplicationException("Multiple Fileset (" + matchingPaths.size() + ") matching " + path, Response.Status.BAD_REQUEST);
RegisteredFileSet fs = Serialization.convert(wrapper.getByPath(path), RegisteredFileSet.class);
log.debug("Going to delete {}", fs);