mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user