diff options
Diffstat (limited to 'crates/ra_lsp_server/src/vfs.rs')
-rw-r--r-- | crates/ra_lsp_server/src/vfs.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/src/vfs.rs b/crates/ra_lsp_server/src/vfs.rs index 6e317d854..00ab3e6c3 100644 --- a/crates/ra_lsp_server/src/vfs.rs +++ b/crates/ra_lsp_server/src/vfs.rs | |||
@@ -25,9 +25,9 @@ pub fn roots_loader() -> (Worker<PathBuf, (PathBuf, Vec<FileEvent>)>, ThreadWatc | |||
25 | |input_receiver, output_sender| { | 25 | |input_receiver, output_sender| { |
26 | input_receiver | 26 | input_receiver |
27 | .map(|path| { | 27 | .map(|path| { |
28 | debug!("loading {} ...", path.as_path().display()); | 28 | log::debug!("loading {} ...", path.as_path().display()); |
29 | let events = load_root(path.as_path()); | 29 | let events = load_root(path.as_path()); |
30 | debug!("... loaded {}", path.as_path().display()); | 30 | log::debug!("... loaded {}", path.as_path().display()); |
31 | (path, events) | 31 | (path, events) |
32 | }) | 32 | }) |
33 | .for_each(|it| output_sender.send(it)) | 33 | .for_each(|it| output_sender.send(it)) |
@@ -41,7 +41,7 @@ fn load_root(path: &Path) -> Vec<FileEvent> { | |||
41 | let entry = match entry { | 41 | let entry = match entry { |
42 | Ok(entry) => entry, | 42 | Ok(entry) => entry, |
43 | Err(e) => { | 43 | Err(e) => { |
44 | warn!("watcher error: {}", e); | 44 | log::warn!("watcher error: {}", e); |
45 | continue; | 45 | continue; |
46 | } | 46 | } |
47 | }; | 47 | }; |
@@ -55,7 +55,7 @@ fn load_root(path: &Path) -> Vec<FileEvent> { | |||
55 | let text = match fs::read_to_string(path) { | 55 | let text = match fs::read_to_string(path) { |
56 | Ok(text) => text, | 56 | Ok(text) => text, |
57 | Err(e) => { | 57 | Err(e) => { |
58 | warn!("watcher error: {}", e); | 58 | log::warn!("watcher error: {}", e); |
59 | continue; | 59 | continue; |
60 | } | 60 | } |
61 | }; | 61 | }; |