From a7db36aa56c1998bc56d593a38f2a1640a9298a0 Mon Sep 17 00:00:00 2001 From: Kevin Keuning Date: Sat, 25 Feb 2017 21:22:09 -0600 Subject: added logging for failed user validation on api update --- system/api/update.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system/api/update.go') diff --git a/system/api/update.go b/system/api/update.go index 93904dc..a669a9a 100644 --- a/system/api/update.go +++ b/system/api/update.go @@ -56,6 +56,7 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) { } if user.IsValid(req) == false { + log.Println("[Update] invalid user.") res.WriteHeader(http.StatusBadRequest) return } @@ -64,7 +65,7 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) { ext, ok := post.(Updateable) if !ok { - log.Println("[Update] rejected non-replaceable type:", t, "from:", req.RemoteAddr) + log.Println("[Update] rejected non-updateable type:", t, "from:", req.RemoteAddr) res.WriteHeader(http.StatusBadRequest) return } -- cgit v1.2.3