Skip to content

Commit

Permalink
Log errors when describing the ring
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bannister committed Aug 6, 2014
1 parent aaa339b commit 3bebfa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions host_source.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gocql

import (
"log"
"net"
"time"
)
Expand Down Expand Up @@ -36,6 +37,7 @@ func (r *ringDescriber) GetHosts() []HostInfo {
iter.Scan(&host.DataCenter, &host.Rack, &host.HostId, &host.Tokens)

if err := iter.Close(); err != nil {
log.Printf("GetHosts: unable to get local host info: %v\n", err)
return r.previous
}

Expand All @@ -60,6 +62,7 @@ func (r *ringDescriber) GetHosts() []HostInfo {
}

if err := iter.Close(); err != nil {
log.Printf("GetHosts: unable to get ring host info: %v\n", err)
return r.previous
}

Expand Down

0 comments on commit 3bebfa5

Please sign in to comment.