Removed logs where possible, for now.

This commit is contained in:
Jesse Malotaux 2025-04-12 15:30:51 +02:00
parent 266110a51f
commit d373237127
5 changed files with 9 additions and 14 deletions

View file

@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"path/filepath"
@ -40,8 +39,6 @@ func SaveMacro(w http.ResponseWriter, r *http.Request) {
return
}
log.Println(simplifiedSteps)
err = os.WriteFile("../macros/"+helper.FormatMacroFileName(newMacro.Name)+".json", stepsJSON, 0644)
if err != nil {
MCRMLog("SaveMacro WriteFile Error: ", err)
@ -111,7 +108,9 @@ func PlayMacro(data string, w http.ResponseWriter, r *http.Request) {
}
macro := req.Macro
log.Println("PlayMacro: ", macro)
MCRMLog("Playing Macro: ", macro)
var filename = helper.FormatMacroFileName(macro)
var filepath = fmt.Sprintf("../macros/%s.json", filename)