diff --git a/internal/cli/logs.go b/internal/cli/logs.go index 3870b75d6..7d915b246 100644 --- a/internal/cli/logs.go +++ b/internal/cli/logs.go @@ -64,9 +64,10 @@ Show the tenant logs. for { list, err = cli.api.Log.List( - management.Query(fmt.Sprintf("log_id:[%s TO *]", lastLogID)), + management.Query(fmt.Sprintf("log_id:[* TO %s]", lastLogID)), + management.Parameter("page", "0"), + management.Parameter("per_page", "100"), management.Parameter("sort", "date:-1"), - management.Parameter("take", "100"), ) if err != nil { return diff --git a/internal/display/display.go b/internal/display/display.go index 9f70f150e..37b092c0f 100644 --- a/internal/display/display.go +++ b/internal/display/display.go @@ -93,7 +93,6 @@ func (r *Renderer) Stream(data []View, ch <-chan View) { } func writeTable(w io.Writer, header []string, data [][]string, ch <-chan View) { - // tableString := &strings.Builder{} table := tablewriter.NewWriter(w) table.SetHeader(header) @@ -129,9 +128,7 @@ func writeTable(w io.Writer, header []string, data [][]string, ch <-chan View) { } }() - go func() { - table.ContinuousRender(strCh) - }() + go table.ContinuousRender(strCh) <-done }