This commit is contained in:
Darius 2024-05-09 23:11:41 +02:00
parent 43999ff914
commit 123dfecadc
2 changed files with 1 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package log
import ( import (
"os" "os"
"path"
"time" "time"
) )

View File

@ -20,9 +20,7 @@ var wazuhData types.WazuhMessage
var BasePath string var BasePath string
func InitNotify() types.Params { func InitNotify() types.Params {
_, currentFile, _, _ := runtime.Caller(1) BasePath, _ := os.Executable()
BasePath = path.Dir(currentFile)
log.OpenLogFile(BasePath) log.OpenLogFile(BasePath)