You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2023/02/28 15:39:30 UTC
[unomi] branch reduceIndicesItems3 updated: UNOMI-736: Add logs to debug Github runs ... Something looks wrong
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch reduceIndicesItems3
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/reduceIndicesItems3 by this push:
new a1bab37c8 UNOMI-736: Add logs to debug Github runs ... Something looks wrong
a1bab37c8 is described below
commit a1bab37c8c1c2d206d64303e12bb322a81b9bd9b
Author: Kevan <ke...@jahia.com>
AuthorDate: Tue Feb 28 16:39:20 2023 +0100
UNOMI-736: Add logs to debug Github runs ... Something looks wrong
---
.../unomi/groovy/actions/services/impl/GroovyActionsServiceImpl.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extensions/groovy-actions/services/src/main/java/org/apache/unomi/groovy/actions/services/impl/GroovyActionsServiceImpl.java b/extensions/groovy-actions/services/src/main/java/org/apache/unomi/groovy/actions/services/impl/GroovyActionsServiceImpl.java
index 0a38e9010..fa31a172b 100644
--- a/extensions/groovy-actions/services/src/main/java/org/apache/unomi/groovy/actions/services/impl/GroovyActionsServiceImpl.java
+++ b/extensions/groovy-actions/services/src/main/java/org/apache/unomi/groovy/actions/services/impl/GroovyActionsServiceImpl.java
@@ -252,8 +252,10 @@ public class GroovyActionsServiceImpl implements GroovyActionsService {
}
private void saveScript(String actionName, String script) {
- GroovyAction groovyScript = new GroovyAction(getGroovyCodeSourceIdForActionId(actionName), script);
+ String groovyName = getGroovyCodeSourceIdForActionId(actionName);
+ GroovyAction groovyScript = new GroovyAction(groovyName, script);
persistenceService.save(groovyScript);
+ logger.info("The script {} has been persisted.", groovyName);
}
private void refreshGroovyActions() {