diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-11-14 22:10:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 22:10:51 +0000 |
commit | 4913274a6508a5e5ad6c8babf2e90a4a84bf98ec (patch) | |
tree | 687e2b6846a8288b4bc9c2896a947b68007731f3 /cli/lsp/logging.rs | |
parent | ab0c637425c3219c2a5f59c25ae8ea593018568b (diff) |
feat(lsp): upgrade check on init and notification (#21105)
Diffstat (limited to 'cli/lsp/logging.rs')
-rw-r--r-- | cli/lsp/logging.rs | 12 |
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)+) + } } ) } |