File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
88mod error;
Original file line number Diff line number Diff 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 ( ) ) ?;
You can’t perform that action at this time.
0 commit comments