WIP: rebase fork onto upstream/main (v1.103.0) #15

Closed
codinget wants to merge 670 commits from webnet into save/webnet-2026-07-29
Showing only changes of commit e2a0d45418 - Show all commits
+8 -5
View File
@@ -786,10 +786,13 @@ func runDaemonLogs(ctx context.Context, args []string) error {
}
d := json.NewDecoder(logs)
for {
type logtail struct {
Time string `json:"client_time"`
}
var line struct {
Text string `json:"text"`
Verbose int `json:"v"`
Time string `json:"client_time"`
Text string `json:"text"`
Verbose int `json:"v"`
Logtail logtail `json:"logtail"`
}
err := d.Decode(&line)
if err != nil {
@@ -799,8 +802,8 @@ func runDaemonLogs(ctx context.Context, args []string) error {
if line.Text == "" || line.Verbose > daemonLogsArgs.verbose {
continue
}
if daemonLogsArgs.time {
fmt.Printf("%s %s\n", line.Time, line.Text)
if daemonLogsArgs.time && line.Logtail.Time != "" {
fmt.Printf("%s %s\n", line.Logtail.Time, line.Text)
} else {
fmt.Println(line.Text)
}