diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ResponseUtilsCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ResponseUtilsCE.java index b4cefdf815..20c773a022 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ResponseUtilsCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ResponseUtilsCE.java @@ -105,6 +105,9 @@ public class ResponseUtilsCE { } public ActionDTO updateActionDTOWithDefaultResources(ActionDTO action) { + log.debug( + "Updating action DTO with default resources with action id: {} ", + action != null ? action.getId() : null); DefaultResources defaultResourceIds = action.getDefaultResources(); if (defaultResourceIds == null) { return action; diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java index 18cf8bfee4..6397776e1a 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java @@ -579,6 +579,10 @@ public class NewActionServiceCEImpl extends BaseService updateUnpublishedAction(String id, ActionDTO action) { + log.debug( + "Updating unpublished action with action id: {} and id: {} ", + action != null ? action.getId() : null, + id); return updateUnpublishedActionWithoutAnalytics(id, action, Optional.of(actionPermission.getEditPermission())) .zipWhen(zippedActions -> { @@ -628,6 +632,9 @@ public class NewActionServiceCEImpl extends BaseService> updateUnpublishedActionWithoutAnalytics( String id, ActionDTO action, Optional permission) { + log.debug( + "Updating unpublished action without analytics with action id: {} ", + action != null ? action.getId() : null); if (id == null) { return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, FieldName.ID)); } @@ -1129,6 +1136,9 @@ public class NewActionServiceCEImpl extends BaseService sanitizeAction(NewAction action) { Mono actionMono = Mono.just(action); if (isPluginTypeOrPluginIdMissing(action)) { + log.debug( + "Sanitizing the action for missing plugin type or plugin Id with action id: {} ", + action != null ? action.getId() : null); actionMono = providePluginTypeAndIdToNewActionObjectUsingJSTypeOrDatasource(action); } @@ -1562,6 +1572,7 @@ public class NewActionServiceCEImpl extends BaseService findByBranchNameAndDefaultActionId( String branchName, String defaultActionId, AclPermission permission) { + log.debug("Going to find action based on branchName and defaultActionId with id: {} ", defaultActionId); if (!StringUtils.hasLength(branchName)) { return repository .findById(defaultActionId, permission) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java index 1479f504ff..765e38e0ab 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java @@ -262,6 +262,7 @@ public class LayoutActionServiceCEImpl implements LayoutActionServiceCE { * This is a basic action update, which updates actions related to pages. */ protected Mono updateActionBasedOnContextType(NewAction newAction, ActionDTO action) { + log.debug("Updating action based on context type with action id: {}", action != null ? action.getId() : null); String pageId = action.getPageId(); action.setApplicationId(null); action.setPageId(null); @@ -277,6 +278,9 @@ public class LayoutActionServiceCEImpl implements LayoutActionServiceCE { actionDTO.setErrorReports( pageDTO.getLayouts().get(0).getLayoutOnLoadActionErrors()); } + log.debug( + "Update action based on context type completed, returning actionDTO with action id: {}", + actionDTO != null ? actionDTO.getId() : null); return actionDTO; }); }