extra server logging

This commit is contained in:
Erik Winter 2025-01-05 12:46:01 +01:00
parent 61b010b918
commit 788ae0c9ba
2 changed files with 2 additions and 2 deletions

BIN
dist/plannersync vendored

Binary file not shown.

View File

@ -100,7 +100,7 @@ func (s *Server) SyncGet(w http.ResponseWriter, r *http.Request) {
} }
fmt.Fprint(w, string(body)) fmt.Fprint(w, string(body))
s.logger.Info("served sync get") s.logger.Info("served sync get", "count", len(items), "remoteAddr", r.RemoteAddr)
} }
func (s *Server) SyncPost(w http.ResponseWriter, r *http.Request) { func (s *Server) SyncPost(w http.ResponseWriter, r *http.Request) {
@ -155,7 +155,7 @@ func (s *Server) SyncPost(w http.ResponseWriter, r *http.Request) {
} }
w.WriteHeader(http.StatusNoContent) w.WriteHeader(http.StatusNoContent)
s.logger.Info("served sync post") s.logger.Info("served sync post", "count", len(items), "remoteAddr", r.RemoteAddr)
} }
// ShiftPath splits off the first component of p, which will be cleaned of // ShiftPath splits off the first component of p, which will be cleaned of