refactor(logs): encapsulate printing errors in PrintEntry

This commit is contained in:
Pasha Sviderski
2026-04-22 11:32:23 +10:00
parent 19c13f6cd2
commit 5b5cd44d68
3 changed files with 8 additions and 12 deletions
-4
View File
@@ -125,10 +125,6 @@ func runLogs(ctx context.Context, uncli *cli.CLI, units []string, opts logs.Opti
// Print merged logs.
for entry := range stream {
if entry.Err != nil {
formatter.PrintError(entry)
continue
}
formatter.PrintEntry(entry)
}
-4
View File
@@ -180,10 +180,6 @@ func runLogs(ctx context.Context, uncli *cli.CLI, args []string, opts logs.Optio
// Print merged logs.
for entry := range stream {
if entry.Err != nil {
formatter.PrintError(entry)
continue
}
formatter.PrintEntry(entry)
}