Skip to content

Commit e41870a

Browse files
committed
Display the statement cache size in Conn Debug impl
1 parent 2cca2b5 commit e41870a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,12 @@ impl fmt::Debug for Connection {
857857
let conn = self.conn.borrow();
858858
write!(fmt,
859859
"Connection {{ cancel_data: {:?}, notifications: {:?}, transaction_depth: {:?}, \
860-
desynchronized: {:?} }}", conn.cancel_data, conn.notifications.len(),
861-
conn.trans_depth, conn.desynchronized)
860+
desynchronized: {:?}, cached_statements: {:?} }}",
861+
conn.cancel_data,
862+
conn.notifications.len(),
863+
conn.trans_depth,
864+
conn.desynchronized,
865+
conn.cached_statements.len())
862866
}
863867
}
864868

0 commit comments

Comments
 (0)