We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece9ebf commit 9478edcCopy full SHA for 9478edc
1 file changed
libsql-server/src/connection/libsql.rs
@@ -928,11 +928,17 @@ impl<W: Wal> Connection<W> {
928
let rows_written = stmt.get_status(StatementStatus::RowsWritten) as u64;
929
930
if rows_read >= 10_000 || rows_written >= 1_000 {
931
+ let sql = if sql.len() >= 512 {
932
+ &sql[..512]
933
+ } else {
934
+ &sql[..]
935
+ };
936
+
937
tracing::info!(
938
"high read ({}) or write ({}) query: {}",
939
rows_read,
940
rows_written,
- &sql[..512]
941
+ sql
942
);
943
}
944
0 commit comments