From 36df8975cf8549eeae130d7daae9f1c7390bf834 Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Mon, 11 Mar 2024 05:49:43 +0800 Subject: [PATCH] fix(server/cli): only .db files are supported in analyze-log command --- server/cli/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/cli/main.go b/server/cli/main.go index 73aa456..5abd0fc 100644 --- a/server/cli/main.go +++ b/server/cli/main.go @@ -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) {