Skip to content

Commit

Permalink
log full exception information when calling JSR223 scripts (openhab#3176
Browse files Browse the repository at this point in the history
)

* log full exception information when calling JSR223 scripts

The scripts are user code, so in order to help them debug their code,
the full stack trace is very useful.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
GitOrigin-RevId: 0cceb5b
  • Loading branch information
ccutrer authored and splatch committed Jul 12, 2023
1 parent be67124 commit 794cc56
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public void loadScript(String engineIdentifier, InputStreamReader scriptData,
}
} catch (Exception ex) {
logger.error("Error during evaluation of script '{}': {}", engineIdentifier, ex.getMessage());
logger.debug("", ex);
}
}
}
Expand Down

0 comments on commit 794cc56

Please sign in to comment.