From 2b6ea76352bcd70f98a7cb66f7b9a49b7a309264 Mon Sep 17 00:00:00 2001 From: "Lachance, Alexandre" Date: Mon, 6 Nov 2023 14:11:16 -0500 Subject: [PATCH] Remove unnecessary log configuration. --- ls_framework/src/language_server.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ls_framework/src/language_server.rs b/ls_framework/src/language_server.rs index c9a37be..48e2d09 100644 --- a/ls_framework/src/language_server.rs +++ b/ls_framework/src/language_server.rs @@ -39,15 +39,7 @@ impl LanguageServer for Backend { )); if let Ok(log_file) = File::create(log_file_path) { - let result = WriteLogger::init( - LevelFilter::Debug, - ConfigBuilder::new() - .add_filter_ignore(String::from("cranelift")) - .add_filter_ignore(String::from("wasmtime")) - .add_filter_ignore(String::from("extism")) - .build(), - log_file, - ); + let result = WriteLogger::init(LevelFilter::Debug, Config::default(), log_file); if result.is_err() { self.client @@ -63,11 +55,13 @@ impl LanguageServer for Backend { info!("Initializing lsp"); if let Some(options) = params.initialization_options { - info!("Init {}", options); + info!("Init options: {}", options); self.plugin_manager .write() .unwrap() .load_plugins(params.root_uri, options.to_string().as_str()); + } else { + info!("Init options: NONE"); } Ok(InitializeResult {