Log final exit code instead of intermediate; change log level for build result to INFO
Original commit: 4ec3865830
This commit is contained in:
@@ -134,19 +134,19 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
|
|||||||
val fsOperations = FSOperationsHelper(context, chunk, LOG)
|
val fsOperations = FSOperationsHelper(context, chunk, LOG)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val exitCode = doBuild(chunk, context, dirtyFilesHolder, messageCollector, outputConsumer, fsOperations)
|
val proposedExitCode = doBuild(chunk, context, dirtyFilesHolder, messageCollector, outputConsumer, fsOperations)
|
||||||
LOG.debug("Build result: " + exitCode)
|
|
||||||
|
|
||||||
if (exitCode == OK && fsOperations.hasMarkedDirty()) return ADDITIONAL_PASS_REQUIRED
|
val actualExitCode = if (proposedExitCode == OK && fsOperations.hasMarkedDirty()) ADDITIONAL_PASS_REQUIRED else proposedExitCode
|
||||||
|
|
||||||
return exitCode
|
LOG.info("Build result: " + actualExitCode)
|
||||||
|
return actualExitCode
|
||||||
}
|
}
|
||||||
catch (e: StopBuildException) {
|
catch (e: StopBuildException) {
|
||||||
LOG.debug("Caught exception: " + e)
|
LOG.info("Caught exception: " + e)
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
catch (e: Throwable) {
|
catch (e: Throwable) {
|
||||||
LOG.debug("Caught exception: " + e)
|
LOG.info("Caught exception: " + e)
|
||||||
|
|
||||||
messageCollector.report(
|
messageCollector.report(
|
||||||
CompilerMessageSeverity.EXCEPTION,
|
CompilerMessageSeverity.EXCEPTION,
|
||||||
|
|||||||
Reference in New Issue
Block a user