diff options
author | itchyonion <itchyonion@torproject.org> | 2023-03-22 14:35:52 -0700 |
---|---|---|
committer | itchyonion <itchyonion@torproject.org> | 2023-05-29 10:12:48 -0700 |
commit | 255cee69edcc3d5283ed0a796c080d488fa34983 (patch) | |
tree | c4bba1e0ebdf5049331a115ab4a57bf6c1c74573 | |
parent | 07b5f07452d7b04c7ac2cd70b72115d61ab1e678 (diff) | |
download | snowflake-255cee69edcc3d5283ed0a796c080d488fa34983.tar.gz snowflake-255cee69edcc3d5283ed0a796c080d488fa34983.zip |
Broker: soften non-critical log from error to warning
-rw-r--r-- | broker/ipc.go | 5 |
1 files 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) |