Browse Source

dont trace for internal queries (#1199)

Jaume Marhuenda 7 năm trước cách đây
mục cha
commit
39a77fa090
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      conn.go

+ 1 - 0
conn.go

@@ -1240,6 +1240,7 @@ func (c *Conn) executeBatch(batch *Batch) *Iter {
 
 
 func (c *Conn) query(statement string, values ...interface{}) (iter *Iter) {
 func (c *Conn) query(statement string, values ...interface{}) (iter *Iter) {
 	q := c.session.Query(statement, values...).Consistency(One)
 	q := c.session.Query(statement, values...).Consistency(One)
+	q.trace = nil
 	return c.executeQuery(q)
 	return c.executeQuery(q)
 }
 }