Просмотр исходного кода

Don't repeat identical UpstreamProxyError notices

Rod Hynes 5 лет назад
Родитель
Сommit
8d24f54074
1 измененных файлов с 4 добавлено и 2 удалено
  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
 // user may have input, for example, an incorrect address or incorrect credentials.
 func NoticeUpstreamProxyError(err error) {
-	singletonNoticeLogger.outputNotice(
+	message := err.Error()
+	outputRepetitiveNotice(
+		"UpstreamProxyError", message, 0,
 		"UpstreamProxyError", 0,
-		"message", err.Error())
+		"message", message)
 }
 
 // NoticeClientUpgradeDownloadedBytes reports client upgrade download progress.