Compare commits
No commits in common. "4fc98a547575a93d4b4ba109ad8f91513210f1c7" and "27abdc3687ebb8ea25e289966ebe9f51a27caf65" have entirely different histories.
4fc98a5475
...
27abdc3687
16
cmd/log.go
16
cmd/log.go
@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Mikhail Klementev. All rights reserved.
|
||||
// Copyright 2023 Mikhail Klementev. All rights reserved.
|
||||
// Use of this source code is governed by a AGPLv3 license
|
||||
// (or later) that can be found in the LICENSE file.
|
||||
|
||||
@ -212,12 +212,7 @@ func center(s string, w int) string {
|
||||
}
|
||||
|
||||
func genOkFailCentered(name string, ok bool) (aurv aurora.Value) {
|
||||
if ok {
|
||||
name += " OK"
|
||||
} else {
|
||||
name += " FAIL"
|
||||
}
|
||||
name = center(name, 14)
|
||||
name = center(name, 10)
|
||||
if ok {
|
||||
aurv = aurora.BgGreen(aurora.Black(name))
|
||||
} else {
|
||||
@ -230,7 +225,7 @@ func logLogEntry(l logEntry) {
|
||||
distroInfo := fmt.Sprintf("%s-%s {%s}", l.Distro.ID,
|
||||
l.Distro.Release, l.KernelRelease)
|
||||
|
||||
artifactInfo := fmt.Sprintf("%s", l.Name)
|
||||
artifactInfo := fmt.Sprintf("{[%s] %s}", l.Type, l.Name)
|
||||
|
||||
timestamp := l.Timestamp.Format("2006-01-02 15:04")
|
||||
|
||||
@ -262,10 +257,7 @@ func logLogEntry(l logEntry) {
|
||||
additional = "(timeout)"
|
||||
}
|
||||
|
||||
if len(distroInfo) > 40 {
|
||||
distroInfo = distroInfo[:40]
|
||||
}
|
||||
colored := aurora.Sprintf("[%4d %4s] [%s] %s %-40s: %s %s",
|
||||
colored := aurora.Sprintf("[%4d %4s] [%s] %s %-70s: %s %s",
|
||||
l.ID, l.Tag, timestamp, artifactInfo, distroInfo, status,
|
||||
additional)
|
||||
|
||||
|
@ -168,11 +168,6 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
|
||||
cmd.useRemote = g.Remote
|
||||
cmd.remoteAddr = g.RemoteAddr
|
||||
|
||||
if cmd.RealtimeOutput && cmd.Threads != 1 {
|
||||
log.Warn().Msg("realtime output disables multithreading")
|
||||
cmd.Threads = 1
|
||||
}
|
||||
|
||||
if cmd.useRemote {
|
||||
c := client.Client{RemoteAddr: cmd.remoteAddr}
|
||||
cmd.Kcfg.Kernels, err = c.Kernels()
|
||||
|
Loading…
Reference in New Issue
Block a user