Skip to content

Commit

Permalink
fix(server/cli): only .db files are supported in analyze-log command
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Mar 10, 2024
1 parent 7745bc9 commit 36df897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ var analyzeLogCmd = &cobra.Command{

if fi.IsDir() {
log.Fatalln("directories are not supported")
} else if filepath.Ext(match) != ".db" {
log.Fatalln("only .db files are supported")
}

loggerLoaders = append(loggerLoaders, func() (*logger.Logger, error) {
Expand Down

0 comments on commit 36df897

Please sign in to comment.