[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pluggable-transports/snowflake] 03/05: Broker: soften non-critical log from error to warning



This is an automated email from the git hooks/post-receive script.

itchyonion pushed a commit to branch main
in repository pluggable-transports/snowflake.

commit 255cee69edcc3d5283ed0a796c080d488fa34983
Author: itchyonion <itchyonion@xxxxxxxxxxxxxx>
AuthorDate: Wed Mar 22 14:35:52 2023 -0700

    Broker: soften non-critical log from error to warning
---
 broker/ipc.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/broker/ipc.go b/broker/ipc.go
index 14db4d8..f9984c4 100644
--- a/broker/ipc.go
+++ b/broker/ipc.go
@@ -4,11 +4,12 @@ import (
 	"container/heap"
 	"encoding/hex"
 	"fmt"
-	"git.torproject.org/pluggable-transports/snowflake.git/v2/common/bridgefingerprint"
 	"log"
 	"net"
 	"time"
 
+	"git.torproject.org/pluggable-transports/snowflake.git/v2/common/bridgefingerprint"
+
 	"git.torproject.org/pluggable-transports/snowflake.git/v2/common/messages"
 	"github.com/prometheus/client_golang/prometheus"
 )
@@ -102,7 +103,7 @@ func (i *IPC) ProxyPolls(arg messages.Arg, response *[]byte) error {
 	// Log geoip stats
 	remoteIP, _, err := net.SplitHostPort(arg.RemoteAddr)
 	if err != nil {
-		log.Println("Error processing proxy IP: ", err.Error())
+		log.Println("Warning: cannot process proxy IP: ", err.Error())
 	} else {
 		i.ctx.metrics.lock.Lock()
 		i.ctx.metrics.UpdateCountryStats(remoteIP, proxyType, natType)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits