mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Broker: soften non-critical log from error to warning
This commit is contained in:
parent
07b5f07452
commit
255cee69ed
1 changed files with 3 additions and 2 deletions
|
@ -4,11 +4,12 @@ import (
|
||||||
"container/heap"
|
"container/heap"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.torproject.org/pluggable-transports/snowflake.git/v2/common/bridgefingerprint"
|
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.torproject.org/pluggable-transports/snowflake.git/v2/common/bridgefingerprint"
|
||||||
|
|
||||||
"git.torproject.org/pluggable-transports/snowflake.git/v2/common/messages"
|
"git.torproject.org/pluggable-transports/snowflake.git/v2/common/messages"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
)
|
)
|
||||||
|
@ -102,7 +103,7 @@ func (i *IPC) ProxyPolls(arg messages.Arg, response *[]byte) error {
|
||||||
// Log geoip stats
|
// Log geoip stats
|
||||||
remoteIP, _, err := net.SplitHostPort(arg.RemoteAddr)
|
remoteIP, _, err := net.SplitHostPort(arg.RemoteAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error processing proxy IP: ", err.Error())
|
log.Println("Warning: cannot process proxy IP: ", err.Error())
|
||||||
} else {
|
} else {
|
||||||
i.ctx.metrics.lock.Lock()
|
i.ctx.metrics.lock.Lock()
|
||||||
i.ctx.metrics.UpdateCountryStats(remoteIP, proxyType, natType)
|
i.ctx.metrics.UpdateCountryStats(remoteIP, proxyType, natType)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue