Skip to content

Commit

Permalink
Avoid logging missing script
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Sep 2, 2024
1 parent 5e019fe commit 7795607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jasper/component/delta/DeltaScript.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import javax.annotation.PostConstruct;

import static jasper.domain.proj.Tag.matchesTag;
import static org.apache.commons.lang3.StringUtils.isNotBlank;

@Profile("scripts")
@Component
Expand Down Expand Up @@ -56,7 +57,7 @@ public void run(Ref ref) throws Exception {
continue;
}
var config = configs.getPluginConfig(scriptTag, ref.getOrigin(), Script.class);
if (config.isPresent()) {
if (config.isPresent() && isNotBlank(config.get().getScript())) {
try {
logger.info("{} Applying delta response {} to {} ({})", ref.getOrigin(), scriptTag, ref.getTitle(), ref.getUrl());
scriptRunner.runScripts(ref, config.get());
Expand Down

0 comments on commit 7795607

Please sign in to comment.