John Weldon 10 лет назад
Родитель
Сommit
692e451010
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      AUTHORS
  2. 1 1
      session.go

+ 1 - 0
AUTHORS

@@ -52,3 +52,4 @@ Baptiste Fontaine <b@ptistefontaine.fr>
 Matt Heath <matt@mattheath.com>
 Jamie Cuthill <jamie.cuthill@gmail.com>
 Adrian Casajus <adriancasajus@gmail.com>
+John Weldon <johnweldon4@gmail.com>

+ 1 - 1
session.go

@@ -436,7 +436,7 @@ type Query struct {
 
 // String implements the stringer interface.
 func (q *Query) String() string {
-	return fmt.Sprintf("Statement: %q, Values: %+v", q.stmt, q.values)
+	return fmt.Sprintf("[query statement=%q values=%+v consistency=%s]", q.stmt, q.values, q.cons)
 }
 
 //Attempts returns the number of times the query was executed.