mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-07 18:01:50 +00:00
pkg/kmsg: write to stderr (instead of stdout)
Part of #3111 Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
@@ -5,6 +5,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/euank/go-kmsg-parser/kmsgparser"
|
||||
@@ -20,6 +21,6 @@ func main() {
|
||||
kmsg := parser.Parse()
|
||||
|
||||
for msg := range kmsg {
|
||||
fmt.Printf("(%d) - %s: %s", msg.SequenceNumber, msg.Timestamp.Format(time.RFC3339Nano), msg.Message)
|
||||
fmt.Fprintf(os.Stderr, "(%d) - %s: %s", msg.SequenceNumber, msg.Timestamp.Format(time.RFC3339Nano), msg.Message)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user