debug logs and b64 non encodable

This commit is contained in:
bel
2020-04-08 02:25:24 +00:00
parent ad31115009
commit d9b10029ae
9 changed files with 25 additions and 2 deletions

View File

@@ -5,12 +5,15 @@ import (
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"net/http"
"sort"
)
func (s *Server) list(w http.ResponseWriter, r *http.Request) {
logb.Debugf("[access] list %s", r.URL.Path)
jobs, err := config.Store.List(ns.Jobs)
logb.Debugf("[access] list : %v: %+v", err, jobs)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return