added log
This commit is contained in:
parent
c601dcdda6
commit
fc0f4e6411
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue