Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
querdenker2k committed Jan 6, 2025
1 parent d0b0ee5 commit c5706bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public JRuleBuilder createJRuleBuilder(String ruleName, JRule jRule, Method meth
method.invoke(jRule);
}
} catch (InvocationTargetException e) {
logError("Error in rule: {}\ntarget: {}", ExceptionUtils.getStackTrace(e),
logError("Error in rule: {}k\ntarget: {}", ExceptionUtils.getStackTrace(e),
ExceptionUtils.getStackTrace(e.getCause()));
} catch (IllegalAccessException | IllegalArgumentException | SecurityException e) {
logError("Error calling rule method '{}#{}': {}", method.getDeclaringClass().getName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public class TestRules extends JRule {
public static final String TAG_CUSTOM = "custom";
public static final String NAME_STARTUP_TRIGGERED = "startup triggered";

private boolean startupTriggerWasCalled;

@JRuleTag({ TAG_CUSTOM })
@JRuleName(NAME_SWITCH_ITEM_RECEIVED_ANY_COMMAND)
@JRuleWhenItemReceivedCommand(item = ITEM_RECEIVING_COMMAND_SWITCH)
Expand Down Expand Up @@ -441,6 +443,7 @@ public void getTagsAndMetadata() {
@JRuleName(NAME_STARTUP_TRIGGERED)
@JRuleWhenStartup(level = 50)
public void startupTriggered(JRuleStartupEvent evt) {
startupTriggerWasCalled = true;
logInfo("Startup Event: '{}'", evt.getStartupLevel());
}

Expand Down

0 comments on commit c5706bc

Please sign in to comment.