From f6e8b376d1d21b8b697de5ef1e35a341855202ed Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 6 Dec 2018 21:03:39 +0300 Subject: modernize more --- crates/ra_lsp_server/src/thread_watcher.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/ra_lsp_server/src/thread_watcher.rs') diff --git a/crates/ra_lsp_server/src/thread_watcher.rs b/crates/ra_lsp_server/src/thread_watcher.rs index 5143c77ae..99825d440 100644 --- a/crates/ra_lsp_server/src/thread_watcher.rs +++ b/crates/ra_lsp_server/src/thread_watcher.rs @@ -2,6 +2,7 @@ use std::thread; use crossbeam_channel::{bounded, unbounded, Receiver, Sender}; use drop_bomb::DropBomb; +use failure::format_err; use crate::Result; @@ -48,7 +49,7 @@ impl ThreadWatcher { } pub fn stop(mut self) -> Result<()> { - info!("waiting for {} to finish ...", self.name); + log::info!("waiting for {} to finish ...", self.name); let name = self.name; self.bomb.defuse(); let res = self @@ -56,8 +57,8 @@ impl ThreadWatcher { .join() .map_err(|_| format_err!("ThreadWatcher {} died", name)); match &res { - Ok(()) => info!("... {} terminated with ok", name), - Err(_) => error!("... {} terminated with err", name), + Ok(()) => log::info!("... {} terminated with ok", name), + Err(_) => log::error!("... {} terminated with err", name), } res } -- cgit v1.2.3