浏览代码

Demote "handshake" log to debug level

Rod Hynes 7 年之前
父节点
当前提交
66bdfbe8fb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      psiphon/server/api.go

+ 4 - 2
psiphon/server/api.go

@@ -273,7 +273,9 @@ func handshakeAPIRequestHandler(
 	// the state change (for example, if a second handshake is performed)
 	//
 	// The handshake event is no longer shipped to log consumers, so this is
-	// simply a diagnostic log.
+	// simply a diagnostic log. Since the "server_tunnel" event includes all
+	// common API parameters and "handshake_completed" flag, this handshake
+	// log is mostly redundant and set to debug level.
 
 	log.WithContextFields(
 		getRequestLogFields(
@@ -281,7 +283,7 @@ func handshakeAPIRequestHandler(
 			geoIPData,
 			authorizedAccessTypes,
 			params,
-			baseRequestParams)).Info("handshake")
+			baseRequestParams)).Debug("handshake")
 
 	handshakeResponse := protocol.HandshakeResponse{
 		SSHSessionID:           sessionID,