logger, compiler logic, sse endpoints

This commit is contained in:
Maximilian Wagner
2025-12-25 20:05:33 +01:00
parent d9f7ead467
commit 891ebe0107
8 changed files with 110 additions and 26 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"os"
//"log/slog"
"git.noctra.dev/noctra/servtex/globals"
"git.noctra.dev/noctra/servtex/backend"
//"net/http"
@@ -14,8 +13,9 @@ import (
// 1 - config file could not be read
func main() {
err := backend.ConfigReader("config.json", &globals.AppConfig)
if err != nil {
os.Exit(1)
}
if err != nil { os.Exit(1) }
globals.LogFile, err = os.Open(globals.AppConfig.LogFilePath)
if err != nil { os.Exit(2) }
}