From ee13db3b07c9f77f24940f8676a9a71b4fa3dc46 Mon Sep 17 00:00:00 2001 From: Darius Date: Thu, 9 May 2024 23:20:52 +0200 Subject: [PATCH] import fix --- wazuh-notify-go/services/init.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wazuh-notify-go/services/init.go b/wazuh-notify-go/services/init.go index 4111836..82ac9b5 100644 --- a/wazuh-notify-go/services/init.go +++ b/wazuh-notify-go/services/init.go @@ -4,7 +4,6 @@ import ( "bufio" "encoding/json" "flag" - "fmt" "github.com/joho/godotenv" "gopkg.in/yaml.v2" "os" @@ -22,7 +21,7 @@ var BasePath string func InitNotify() types.Params { BaseFilePath, _ := os.Executable() BaseDirPath := path.Dir(BaseFilePath) - + log.OpenLogFile(BaseDirPath) err := godotenv.Load(path.Join(BaseDirPath, "../../etc/.env"))