Skip to content

Commit

Permalink
Merge pull request #17777 from igfoo/igfoo/log-sev
Browse files Browse the repository at this point in the history
KE2: Log our verbosity level
  • Loading branch information
igfoo authored Oct 16, 2024
2 parents 9a4cd21 + 9b13368 commit a922f97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ OLD: KE1
val logger = Logger(loggerBase, dtw)
logger.info("Extraction started")
logger.flush()
logger.infoVerbosity()
logger.info("Extraction for invocation TRAP file $invocationTrapFile")
logger.flush()
/*
Expand Down
8 changes: 8 additions & 0 deletions java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ class LoggerBase(val diagnosticCounter: DiagnosticCounter) : BasicLogger {
}
}

fun infoVerbosity(dtw: DiagnosticTrapWriter) {
info(dtw, "Kotlin extractor verbosity is " + verbosity.toString())
}

override fun warn(dtw: DiagnosticTrapWriter, msg: String, extraInfo: String?) {
warn(dtw, msg, extraInfo, null)
}
Expand Down Expand Up @@ -348,6 +352,10 @@ open class Logger(val loggerBase: LoggerBase, val dtw: DiagnosticTrapWriter) : B
info(dtw, msg)
}

fun infoVerbosity() {
loggerBase.infoVerbosity(dtw)
}

override fun warn(dtw: DiagnosticTrapWriter, msg: String, extraInfo: String?) {
loggerBase.warn(dtw, msg, extraInfo, null)
}
Expand Down

0 comments on commit a922f97

Please sign in to comment.