summaryrefslogtreecommitdiff
path: root/cli/lsp/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/logging.rs')
-rw-r--r--cli/lsp/logging.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/cli/lsp/logging.rs b/cli/lsp/logging.rs
index 8b703f2a5..b8c8c99e6 100644
--- a/cli/lsp/logging.rs
+++ b/cli/lsp/logging.rs
@@ -62,11 +62,13 @@ macro_rules! lsp_log {
/// for downgrading these logs to another log level in the REPL.
macro_rules! lsp_warn {
($($arg:tt)+) => (
- let lsp_log_level = $crate::lsp::logging::lsp_warn_level();
- if lsp_log_level == log::Level::Debug {
- $crate::lsp::logging::lsp_debug!($($arg)+)
- } else {
- log::log!(lsp_log_level, $($arg)+)
+ {
+ let lsp_log_level = $crate::lsp::logging::lsp_warn_level();
+ if lsp_log_level == log::Level::Debug {
+ $crate::lsp::logging::lsp_debug!($($arg)+)
+ } else {
+ log::log!(lsp_log_level, $($arg)+)
+ }
}
)
}