From 4fa254a449596e91c4a710c5807146fb8a102985 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Thu, 14 May 2020 15:26:05 +0530 Subject: [PATCH] Adding error log message whenever an action execution fails because of invalid datasource --- .../java/com/appsmith/server/services/ActionServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java index 0f35f16242..83adb7bd26 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java @@ -345,6 +345,8 @@ public class ActionServiceImpl extends BaseService { Set invalids = datasource.getInvalids(); if (!CollectionUtils.isEmpty(invalids)) { + log.error("Unable to execute actionId: {} because it's datasource is not valid. Cause: {}", + actionFromDto.getId(), ArrayUtils.toString(invalids)); return Mono.error(new AppsmithException(AppsmithError.INVALID_DATASOURCE, ArrayUtils.toString(invalids))); } return pluginService.findById(datasource.getPluginId());