Add debug mode to log

This commit is contained in:
Andrew-71 2024-10-13 11:25:00 +03:00
parent ba31bc24a6
commit c22cf9e7c8
7 changed files with 56 additions and 9 deletions

View file

@ -28,5 +28,6 @@ func Serve() {
router.HandleFunc("GET /login", func(w http.ResponseWriter, r *http.Request) { auth.Login(w, r, data) })
slog.Info("🪐 pye started", "port", config.Cfg.Port)
slog.Debug("debug mode active")
http.ListenAndServe(":"+strconv.Itoa(config.Cfg.Port), router)
}