mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02: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:
@@ -278,13 +278,13 @@ public class OdasaOutput {
|
||||
if (!currVersion.isValid()) {
|
||||
log.warn("Not rewriting trap file for: " + sym + " " + trapVersion + " " + currVersion + " " + trap);
|
||||
} else if (currVersion.newerThan(trapVersion)) {
|
||||
log.info("Rewriting trap file for: " + sym + " " + trapVersion + " " + currVersion + " " + trap);
|
||||
log.trace("Rewriting trap file for: " + sym + " " + trapVersion + " " + currVersion + " " + trap);
|
||||
deleteTrapFileAndDependencies(sym);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
log.info("Writing trap file for: " + sym.getName() + " " + currVersion + " " + trap);
|
||||
log.trace("Writing trap file for: " + sym.getName() + " " + currVersion + " " + trap);
|
||||
}
|
||||
return trapWriter(trap, sym);
|
||||
}
|
||||
|
||||
@@ -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