1
0

Show also ID of log entry

This commit is contained in:
dump_stack() 2019-08-13 23:39:14 +00:00
parent 9175305cb9
commit 5ed23ee2b0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

8
log.go
View File

@ -21,13 +21,13 @@ func logLogEntry(l logEntry) {
colored := "" colored := ""
if l.Type == config.KernelExploit { if l.Type == config.KernelExploit {
colored = aurora.Sprintf("[%s] %40s %40s: %s %s", colored = aurora.Sprintf("[%8d] [%s] %40s %40s: %s %s",
l.Timestamp, artifactInfo, distroInfo, l.ID, l.Timestamp, artifactInfo, distroInfo,
genOkFail("BUILD", l.Build.Ok), genOkFail("BUILD", l.Build.Ok),
genOkFail("LPE", l.Test.Ok)) genOkFail("LPE", l.Test.Ok))
} else { } else {
colored = aurora.Sprintf("[%s] %40s %40s: %s %s %s", colored = aurora.Sprintf("[%8d] [%s] %40s %40s: %s %s %s",
l.Timestamp, artifactInfo, distroInfo, l.ID, l.Timestamp, artifactInfo, distroInfo,
genOkFail("BUILD", l.Build.Ok), genOkFail("BUILD", l.Build.Ok),
genOkFail("INSMOD", l.Run.Ok), genOkFail("INSMOD", l.Run.Ok),
genOkFail("TEST", l.Test.Ok)) genOkFail("TEST", l.Test.Ok))