logger, compiler logic, sse endpoints
This commit is contained in:
8
main.go
8
main.go
@@ -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) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user