Kotlin: Use trace (silently for now) rather than info for writing TRAP files

The on-demand "Writing trap file for: " messages are drowning out
everything else while running the tests.
This commit is contained in:
Ian Lynagh
2021-10-27 18:05:50 +01:00
parent d6692e434a
commit f95934a0c5
2 changed files with 6 additions and 4 deletions

View File

@@ -43,13 +43,15 @@ open class Logger(val logCounter: LogCounter, open val tw: TrapWriter) {
println(fullMsg)
}
fun trace(msg: String) {
info(msg)
if(false) {
info(msg)
}
}
fun debug(msg: String) {
info(msg)
}
fun trace(msg: String, exn: Exception) {
info(msg + " // " + exn)
trace(msg + " // " + exn)
}
fun warn(severity: Severity, msg: String, locationString: String? = null, locationId: Label<DbLocation> = tw.unknownLocation, stackIndex: Int = 2) {
val st = Exception().stackTrace