[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Remove unnecessary logging at broker
commit 7557e96a8d41c778a0b039b03969c66f91bd108a
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date: Wed Nov 13 15:01:03 2019 -0500
Remove unnecessary logging at broker
---
broker/broker.go | 2 --
1 file changed, 2 deletions(-)
diff --git a/broker/broker.go b/broker/broker.go
index 4343de8..13d2575 100644
--- a/broker/broker.go
+++ b/broker/broker.go
@@ -161,7 +161,6 @@ func proxyPolls(ctx *BrokerContext, w http.ResponseWriter, r *http.Request) {
sid, err := messages.DecodePollRequest(body)
if err != nil {
- log.Println("Invalid data.")
w.WriteHeader(http.StatusBadRequest)
return
}
@@ -259,7 +258,6 @@ func proxyAnswers(ctx *BrokerContext, w http.ResponseWriter, r *http.Request) {
answer, id, err := messages.DecodeAnswerRequest(body)
if err != nil || answer == "" {
- log.Println("Invalid data.")
w.WriteHeader(http.StatusBadRequest)
return
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits