1
0

feat: add internal error to log database

This commit is contained in:
2023-05-24 22:46:04 +00:00
parent 605871d17a
commit 7806a774e4
3 changed files with 55 additions and 9 deletions

6
log.go
View File

@ -214,7 +214,11 @@ func logLogEntry(l logEntry) {
artifactInfo := fmt.Sprintf("{[%s] %s}", l.Type, l.Name)
colored := ""
if l.Type == config.KernelExploit {
if l.InternalErrorString != "" {
colored = aurora.Sprintf("[%4d %4s] [%s] %40s %40s: %s",
l.ID, l.Tag, l.Timestamp, artifactInfo, distroInfo,
genOkFail("", false))
} else if l.Type == config.KernelExploit {
colored = aurora.Sprintf("[%4d %4s] [%s] %40s %40s: %s %s",
l.ID, l.Tag, l.Timestamp, artifactInfo, distroInfo,
genOkFail("BUILD", l.Build.Ok),