Skip to content

Commit

Permalink
return an info message when no logs are found
Browse files Browse the repository at this point in the history
  • Loading branch information
morganelle committed Mar 5, 2021
1 parent 3672d25 commit 265b589
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Show the tenant logs.

if len(list) > 0 {
lastLogID = list[len(list)-1].GetLogID()
} else {
cli.renderer.Infof("No logs found for tenant %s; to generate logs, run commands like `auth0 test login` or `auth0 test token`", cli.tenant)
return nil
}

var logsCh chan []*management.Log
Expand Down

0 comments on commit 265b589

Please sign in to comment.