Fixing deleteFileSetRoutine and improved logs

This commit is contained in:
Francesco Mangiacrapa 2023-04-28 16:08:28 +02:00
parent a8b14a911b
commit 2593fbf195
1 changed files with 2 additions and 1 deletions

View File

@ -1276,8 +1276,9 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
fs = Serialization.convert(toFileSet, RegisteredFileSet.class);
log.info("Going to delete {}", fs);
} catch (Exception e) {
log.warn("Error on getting the RegisteredFileSet for path {}", path);
log.warn("Error on getting the RegisteredFileSet for path {}. Returning the input doc {}", path, doc.getId());
log.debug("Error is: ", e);
return doc;
}
// Updated by Francesco. See #24902