Skip to content

Commit 9f5d39c

Browse files
committed
chore: change logging level of transactions to trace
1 parent a522a84 commit 9f5d39c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bsp-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! This crate handles protocol handshaking and parsing messages, while you
33
//! control the message dispatch loop yourself.
44
//!
5-
//! Run with `RUST_LOG=bsp_server=debug` to see all the messages.
5+
//! Run with `RUST_LOG=bsp_server=trace` to see all the messages.
66
//!
77
//! inspired by lsp-server
88
mod error;

bsp-server/src/message.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ impl Message {
3535
None => return Ok(None),
3636
};
3737
let msg = serde_json::from_str(&text)?;
38-
tracing::debug!("Got <<<<<<<<<<<<<<<<<<<<<<<<<\n\n{:#?}\n", msg);
38+
tracing::trace!("Got <<<<<<<<<<<<<<<<<<<<<<<<<\n\n{:#?}\n", msg);
3939
Ok(Some(msg))
4040
}
4141

4242
pub(crate) fn write(self, w: &mut dyn io::Write) -> io::Result<()> {
43-
tracing::debug!("Sent >>>>>>>>>>>>>>>>>>>>>>>>>\n\n{:#?}\n", self);
43+
tracing::trace!("Sent >>>>>>>>>>>>>>>>>>>>>>>>>\n\n{:#?}\n", self);
4444
let msg = serde_json::to_string(&JsonRpc::from(self))?;
4545
write!(w, "Content-Length: {}\r\n\r\n", msg.len())?;
4646
w.write_all(msg.as_bytes())?;

0 commit comments

Comments
 (0)