Remove forced file logging from cgr-engine helper

This commit is contained in:
ionutboangiu
2024-09-18 14:11:49 +03:00
committed by Dan Christian Bogos
parent 68b84d2ad3
commit fb9e69e812

View File

@@ -344,10 +344,7 @@ func StartEngine(cfgPath string, waitEngine int) (*exec.Cmd, error) {
return nil, err
}
f, _ := os.Create("/tmp/LOGS")
engine := exec.Command(enginePath, "-config_path", cfgPath, "-logger=*stdout")
engine.Stderr = f
engine.Stdout = f
engine := exec.Command(enginePath, "-config_path", cfgPath)
if err := engine.Start(); err != nil {
return nil, err
}