Skip to content

Commit

Permalink
Log timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 6, 2024
1 parent f1233fc commit a5b005e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ var logsCmd = &cobra.Command{
log.Println("Received SessionStart event")
case *cwlogsTypes.StartLiveTailResponseStreamMemberSessionUpdate:
for _, logEvent := range e.Value.SessionResults {
log.Println(*logEvent.Message)
// TODO: format timestamp as datetime
fmt.Printf("%v %s\n", *logEvent.Timestamp, *logEvent.Message)
}
default:
fmt.Println("TODO")
Expand Down

0 comments on commit a5b005e

Please sign in to comment.