Skip to content

Commit

Permalink
Mute debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
kkdai committed Jul 13, 2016
1 parent d3d57a2 commit 901d763
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sender/cassandra.go
Expand Up @@ -31,18 +31,8 @@ func NewCassandra(dbConfig DBConfig) *Cassandra {
//InsertKV :
func (c *Cassandra) InsertKV(table, key, value string) error {
qStr := fmt.Sprintf("INSERT INTO %s (uuid, key, value) VALUES (?, ?, ?)", table)
log.Println("CQL:", qStr)
if err := c.Session.Query(qStr, cassandra.TimeUUID(), key, value).Exec(); err != nil {
log.Fatal(err)
}
iter2 := c.Session.Query("SELECT key,value FROM raw_record").Iter()
for iter2.Scan(&key, &value) {
fmt.Println("kafka:", key, value)
}

err := iter2.Close()
if err != nil {
log.Fatal(err)
}
return err
return nil
}

0 comments on commit 901d763

Please sign in to comment.