Commit ded069c0 authored by Jordan Sissel's avatar Jordan Sissel

Log when connecting

parent b5522a4e
......@@ -136,6 +136,7 @@ func (s *FFS) ensure_connect() {
var max *big.Int = big.NewInt(int64(len(s.Endpoints)))
i, _ := rand.Int(rand.Reader, max)
s.endpoint = s.Endpoints[i.Int64()]
log.Printf("Connecting to %s\n", s.endpoint)
err := s.socket.Connect(s.endpoint)
if err != nil {
log.Printf("%s: Error connecting: %s\n", s.endpoint, err)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment