Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
diagnostic: remove no logs found diagnostic error
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Sep 11, 2024
1 parent d81f19f commit e6715c4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/sst/diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ var CmdDiagnostic = &cli.Command{
workingDir := project.ResolveWorkingDir(cfg)
logDir := project.ResolveLogDir(cfg)
logFiles, err := os.ReadDir(logDir)
if len(logFiles) < 3 {
ui.Error("No logs found, run a command before generating a diagnostic report")
return nil
}
fmt.Println(ui.TEXT_DIM.Render("Generating diagnostic report from last run..."))
zipFile, err := os.Create(filepath.Join(workingDir, "report.zip"))
if err != nil {
Expand Down

0 comments on commit e6715c4

Please sign in to comment.