From 265b589f52b3de40f5bd8f2568e80a9330e86f79 Mon Sep 17 00:00:00 2001 From: morganelle Date: Fri, 5 Mar 2021 13:06:06 -0800 Subject: [PATCH] return an info message when no logs are found --- internal/cli/logs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cli/logs.go b/internal/cli/logs.go index 0e02b868d..76c6a88ad 100644 --- a/internal/cli/logs.go +++ b/internal/cli/logs.go @@ -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