From 5ed187ba618c35e66b8f1ccf6e5735ad889b2dbc Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 22 May 2025 11:54:29 +0300 Subject: [PATCH] sqlite3-parser: Remove scanner trace-logging It spams the logs like no tomorrow, and is mostly useless. --- vendored/sqlite3-parser/src/lexer/scan.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vendored/sqlite3-parser/src/lexer/scan.rs b/vendored/sqlite3-parser/src/lexer/scan.rs index 6c0085b29..9bdaefa71 100644 --- a/vendored/sqlite3-parser/src/lexer/scan.rs +++ b/vendored/sqlite3-parser/src/lexer/scan.rs @@ -1,7 +1,5 @@ //! Adaptation/port of [Go scanner](http://tip.golang.org/pkg/bufio/#Scanner). -use log::trace; - use std::error::Error; use std::fmt; use std::io; @@ -118,7 +116,6 @@ impl Scanner { &mut self, input: &'input [u8], ) -> ScanResult<'input, S::TokenType, S::Error> { - trace!(target: "scanner", "scan(line: {}, column: {})", self.line, self.column); // Loop until we have a token. loop { // See if we can get a token with what we already have. @@ -152,7 +149,6 @@ impl Scanner { /// Consume `amt` bytes of the buffer. fn consume(&mut self, data: &[u8], amt: usize) { - trace!(target: "scanner", "consume({})", amt); debug_assert!(amt <= data.len()); for byte in &data[..amt] { if *byte == b'\n' {