Преглед изворни кода

Change log level of port forward reject messages

Rod Hynes пре 9 година
родитељ
комит
8a52b8afff
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      psiphon/server/tunnelServer.go

+ 4 - 1
psiphon/server/tunnelServer.go

@@ -847,12 +847,15 @@ func (sshClient *sshClient) runClient(
 }
 
 func (sshClient *sshClient) rejectNewChannel(newChannel ssh.NewChannel, reason ssh.RejectionReason, logMessage string) {
+
+	// Note: Debug level, as logMessage may contain user traffic destination address information
 	log.WithContextFields(
 		LogFields{
 			"channelType":  newChannel.ChannelType(),
 			"logMessage":   logMessage,
 			"rejectReason": reason.String(),
-		}).Warning("reject new channel")
+		}).Debug("reject new channel")
+
 	// Note: logMessage is internal, for logging only; just the RejectionReason is sent to the client
 	newChannel.Reject(reason, reason.String())
 }