Logging update

This commit is contained in:
Jesse Malotaux 2025-04-11 17:49:28 +02:00
parent 541f016eaf
commit 2098aface9
13 changed files with 119 additions and 91 deletions

View file

@ -1,7 +1,6 @@
package main
import (
"log"
"net/http"
"be/app"
@ -9,11 +8,13 @@ import (
)
func main() {
app.MCRMLogInit()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
apiInit(w, r)
})
log.Println(http.ListenAndServe(":"+helper.EnvGet("MCRM__PORT"), nil))
app.MCRMLog(http.ListenAndServe(":"+helper.EnvGet("MCRM__PORT"), nil))
}
func apiInit(w http.ResponseWriter, r *http.Request) {