Browse Source

Don't repeat identical UpstreamProxyError notices

Rod Hynes 5 years ago
parent
commit
8d24f54074
1 changed files with 4 additions and 2 deletions
  1. 4 2
      psiphon/notice.go

+ 4 - 2
psiphon/notice.go

@@ -667,9 +667,11 @@ func NoticeSplitTunnelRegion(region string) {
 // NoticeUpstreamProxyError reports an error when connecting to an upstream proxy. The
 // NoticeUpstreamProxyError reports an error when connecting to an upstream proxy. The
 // user may have input, for example, an incorrect address or incorrect credentials.
 // user may have input, for example, an incorrect address or incorrect credentials.
 func NoticeUpstreamProxyError(err error) {
 func NoticeUpstreamProxyError(err error) {
-	singletonNoticeLogger.outputNotice(
+	message := err.Error()
+	outputRepetitiveNotice(
+		"UpstreamProxyError", message, 0,
 		"UpstreamProxyError", 0,
 		"UpstreamProxyError", 0,
-		"message", err.Error())
+		"message", message)
 }
 }
 
 
 // NoticeClientUpgradeDownloadedBytes reports client upgrade download progress.
 // NoticeClientUpgradeDownloadedBytes reports client upgrade download progress.