diff --git a/jans-core/script/src/main/java/io/jans/service/custom/script/ExternalTypeCreator.java b/jans-core/script/src/main/java/io/jans/service/custom/script/ExternalTypeCreator.java index 9a83b00b6a9..02466b68c53 100644 --- a/jans-core/script/src/main/java/io/jans/service/custom/script/ExternalTypeCreator.java +++ b/jans-core/script/src/main/java/io/jans/service/custom/script/ExternalTypeCreator.java @@ -53,7 +53,8 @@ public BaseExternalType createExternalType(CustomScript customScript, externalType = createExternalTypeFromStringWithPythonException(customScript); } } catch (Exception ex) { - log.error("Failed to prepare external type '{}', ex: '{}'", customScriptInum, ex); + log.error("Failed to prepare external type '{}', ex: '{}'", customScriptInum, ExceptionUtils.getStackTrace(ex)); + log.trace("Script '{}'", customScript.getScript()); saveScriptError(customScript, ex, true); return null; }