Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Jan 26, 2021
1 parent 325b271 commit 3571a4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Show the tenant logs.
list, err = cli.api.Log.List(
management.Query(fmt.Sprintf("log_id:[* TO %s]", lastLogID)),
management.Parameter("page", "0"),
management.Parameter("per_page", "100"),
management.Parameter("per_page", "1000"),
management.Parameter("sort", "date:-1"),
)
if err != nil {
Expand Down
6 changes: 5 additions & 1 deletion internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ func (v *logView) getConnection() string {
if ok && len(prompt) > 0 {
dict, ok := prompt[0].(map[string]interface{})
if ok {
return dict["connection"].(string)
v, ok := dict["connection"].(string)
if ok {
return v
}
return notApplicable
} else {
return notApplicable
}
Expand Down

0 comments on commit 3571a4d

Please sign in to comment.