Drop exception/stacktrace from logging warning if a script template is not found in the classpath

reducing clutter in logs and console
#KT-24754 fixed
This commit is contained in:
Ilya Chernikov
2018-08-06 11:53:58 +02:00
parent 6f9441d3f4
commit a3d719785c
@@ -226,7 +226,7 @@ fun loadDefinitionsFromTemplates(
} catch (e: ClassNotFoundException) {
// Assuming that direct ClassNotFoundException is the result of versions mismatch and missing subsystems, e.g. gradle
// so, it only results in warning, while other errors are severe misconfigurations, resulting it user-visible error
LOG.warn("[kts] cannot load script definition class $templateClassName", e)
LOG.warn("[kts] cannot load script definition class $templateClassName")
null
} catch (e: Throwable) {
LOG.error("[kts] cannot load script definition class $templateClassName", e)