Procházet zdrojové kódy

Log "establishing tunnels" state changes

Rod Hynes před 9 roky
rodič
revize
7ec9f1075b
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      psiphon/server/tunnelServer.go

+ 3 - 0
psiphon/server/tunnelServer.go

@@ -258,6 +258,9 @@ func (sshServer *sshServer) setEstablishTunnels(establish bool) {
 		establishFlag = 0
 	}
 	atomic.StoreInt32(&sshServer.establishTunnels, establishFlag)
+
+	log.WithContextFields(
+		LogFields{"establish": establish}).Info("establishing tunnels")
 }
 
 // runListener is intended to run an a goroutine; it blocks