diff --git a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt index f65f8b2f4b1..ec905fbf8db 100644 --- a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt +++ b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt @@ -107,11 +107,11 @@ OLD: KE1 dtw.flush() val logger = Logger(loggerBase, dtw) logger.info("Extraction started") -/* -OLD: KE1 logger.flush() logger.info("Extraction for invocation TRAP file $invocationTrapFile") logger.flush() +/* +OLD: KE1 logger.info("Kotlin version ${KotlinCompilerVersion.getVersion()}") logger.flush() logPeakMemoryUsage(logger, "before extractor") @@ -138,8 +138,11 @@ OLD: KE1 OLD: KE1 loggerBase.printLimitedDiagnosticCounts(tw) logPeakMemoryUsage(logger, "after extractor") +*/ logger.info("Extraction completed") logger.flush() +/* +OLD: KE1 val compilationTimeMs = System.currentTimeMillis() - startTimeMs tw.writeCompilation_finished( compilation, @@ -147,9 +150,9 @@ OLD: KE1 compilationTimeMs.toDouble() / 1000, invocationExtractionProblems.extractionResult() ) - tw.flush() - loggerBase.close() */ + dtw.flush() + loggerBase.close() } } diff --git a/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt b/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt index 17afec279b2..5fe31b39918 100644 --- a/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt +++ b/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt @@ -304,6 +304,7 @@ OLD: KE1 } } } +*/ fun flush() { logStream.flush() @@ -312,20 +313,19 @@ OLD: KE1 fun close() { logStream.close() } -*/ } /** * Logger is the high-level interface for writint log messages. */ open class Logger(val loggerBase: LoggerBase, val dtw: DiagnosticTrapWriter) { -/* -OLD: KE1 fun flush() { dtw.flush() loggerBase.flush() } +/* +OLD: KE1 fun trace(msg: String) { loggerBase.trace(dtw, msg) }