added logs to trace notified events

This commit is contained in:
Francesco Mangiacrapa 2024-01-16 14:34:46 +01:00
parent 669a5a913d
commit 01db0ae870
1 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,7 @@ public class ProfiledDocuments {
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theNewProject);
log.info("By notifying event ({}, ID {})", event, item.getId());
eventManager.notify(event, item);
return theNewProject;
@ -155,6 +156,7 @@ public class ProfiledDocuments {
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theUpdatedProject);
log.info("By notifying event ({}, ID {})", event, item.getId());
eventManager.notify(event, item);
return theUpdatedProject;
@ -215,6 +217,7 @@ public class ProfiledDocuments {
deletedProject.setId(id);
deletedProject.setProfileID(manager.getUseCaseDescriptor().getId());
item.setProject(deletedProject);
log.info("By notifying event ({}, ID {})", event, item.getId());
eventManager.notify(event, item);
return deleted;
@ -302,6 +305,7 @@ public class ProfiledDocuments {
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theProject);
log.info("By notifying event ({}, ID {})", event, item.getId());
eventManager.notify(event, item);
return theProject;