1
0
Fork 0

Show also ID of log entry

timestamps
dump_stack() 2019-08-13 23:39:14 +00:00
parent 9175305cb9
commit 5ed23ee2b0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 4 additions and 4 deletions

8
log.go
View File

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