Skip to content

Commit

Permalink
Remove unnecessary log configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreLachanceGit committed Nov 6, 2023
1 parent 7c8c8ca commit 2b6ea76
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ls_framework/src/language_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 2b6ea76

Please sign in to comment.