KT-54941: Use Debug level for process launch fallback reason

This commit is contained in:
nataliya.valtman
2022-12-01 13:12:48 +01:00
parent 063dcea2e2
commit 70fb18e160
@@ -40,19 +40,19 @@ fun launchProcessWithFallback(processBuilder: ProcessBuilder, reportingTargets:
NativePlatformLauncherWrapper().launch(processBuilder) NativePlatformLauncherWrapper().launch(processBuilder)
} }
catch (e: UnsatisfiedLinkError) { catch (e: UnsatisfiedLinkError) {
reportingTargets.report(DaemonReportCategory.EXCEPTION, "Could not start process with native process launcher, falling back to ProcessBuilder#start ($e)", reportingSource) reportingTargets.report(DaemonReportCategory.DEBUG, "Could not start process with native process launcher, falling back to ProcessBuilder#start ($e)", reportingSource)
null null
} }
catch (e: IOException) { catch (e: IOException) {
reportingTargets.report(DaemonReportCategory.EXCEPTION, "Could not start process with native process launcher, falling back to ProcessBuilder#start (${e.cause})", reportingSource) reportingTargets.report(DaemonReportCategory.DEBUG, "Could not start process with native process launcher, falling back to ProcessBuilder#start (${e.cause})", reportingSource)
null null
} }
catch (e: NoClassDefFoundError) { catch (e: NoClassDefFoundError) {
reportingTargets.report(DaemonReportCategory.EXCEPTION, "net.rubygrapefruit.platform library is not in the classpath, falling back to ProcessBuilder#start ($e)", reportingSource) reportingTargets.report(DaemonReportCategory.DEBUG, "net.rubygrapefruit.platform library is not in the classpath, falling back to ProcessBuilder#start ($e)", reportingSource)
null null
} }
catch (e: ClassNotFoundException) { catch (e: ClassNotFoundException) {
reportingTargets.report(DaemonReportCategory.EXCEPTION, "net.rubygrapefruit.platform library is not in the classpath, falling back to ProcessBuilder#start ($e)", reportingSource) reportingTargets.report(DaemonReportCategory.DEBUG, "net.rubygrapefruit.platform library is not in the classpath, falling back to ProcessBuilder#start ($e)", reportingSource)
null null
} }
?: processBuilder.start() ?: processBuilder.start()