fix status page

This commit is contained in:
lyx0 2023-12-10 20:15:23 +01:00
parent 4592b3b52f
commit 3491d88251

View file

@ -14,7 +14,7 @@ func (app *application) statusPage() {
botUptime := humanize.Time(common.GetUptime()) botUptime := humanize.Time(common.GetUptime())
statusHandler := func(w http.ResponseWriter, req *http.Request) { statusHandler := func(w http.ResponseWriter, req *http.Request) {
io.WriteString(w, fmt.Sprintf("up\n\nlast restart:\t %v\nenv: %v\tcommit: \t%v", botUptime, app.Environment, commit)) io.WriteString(w, fmt.Sprintf("up\nlast restart: %v\nenv: %v\ncommit: %v", botUptime, app.Environment, commit))
} }
http.HandleFunc("/status", statusHandler) http.HandleFunc("/status", statusHandler)