@@ -21,7 +21,7 @@ use std::collections::{HashMap, HashSet};
2121use std:: fs;
2222use std:: path:: { Path , PathBuf } ;
2323use std:: rc:: Rc ;
24- use tracing:: { debug, error, info, warn} ;
24+ use tracing:: { debug, error, info, trace , warn} ;
2525use triomphe:: Arc ;
2626
2727pub enum RustAnalyzer < ' a > {
@@ -51,7 +51,7 @@ impl<'a> RustAnalyzer<'a> {
5151 project : & ProjectManifest ,
5252 config : & CargoConfig ,
5353 ) -> Option < ( RootDatabase , Vfs ) > {
54- let progress = |t| ( tracing :: trace!( "progress: {}" , t) ) ;
54+ let progress = |t| ( trace ! ( "progress: {}" , t) ) ;
5555 let load_config = LoadCargoConfig {
5656 load_out_dirs_from_check : true ,
5757 with_proc_macro_server : ProcMacroServerChoice :: Sysroot ,
@@ -62,7 +62,7 @@ impl<'a> RustAnalyzer<'a> {
6262 match load_workspace_at ( manifest. as_ref ( ) , config, & load_config, & progress) {
6363 Ok ( ( db, vfs, _macro_server) ) => Some ( ( db, vfs) ) ,
6464 Err ( err) => {
65- tracing :: error!( "failed to load workspace for {}: {}" , manifest, err) ;
65+ error ! ( "failed to load workspace for {}: {}" , manifest, err) ;
6666 None
6767 }
6868 }
0 commit comments