summaryrefslogtreecommitdiff
path: root/cli/lsp/performance.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-12-15 13:23:43 -0500
committerGitHub <noreply@github.com>2021-12-15 13:23:43 -0500
commit6c324acf2363e88293ab94cf3de6c9d7a264b55d (patch)
treeb0d7c8752bf7e7b471be4a50e65572d501bb8b5a /cli/lsp/performance.rs
parenta1f0796fccfafee19b2fe06155efe746da2e9654 (diff)
feat: REPL import specifier auto-completions (#13078)
Diffstat (limited to 'cli/lsp/performance.rs')
-rw-r--r--cli/lsp/performance.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/lsp/performance.rs b/cli/lsp/performance.rs
index 74af38ec1..2c58ab9c9 100644
--- a/cli/lsp/performance.rs
+++ b/cli/lsp/performance.rs
@@ -4,7 +4,6 @@ use deno_core::parking_lot::Mutex;
use deno_core::serde::Deserialize;
use deno_core::serde::Serialize;
use deno_core::serde_json::json;
-use log::debug;
use std::cmp;
use std::collections::HashMap;
use std::collections::VecDeque;
@@ -13,6 +12,8 @@ use std::sync::Arc;
use std::time::Duration;
use std::time::Instant;
+use super::logging::lsp_debug;
+
#[derive(Debug, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PerformanceAverage {
@@ -156,7 +157,7 @@ impl Performance {
"name": name,
})
};
- debug!("{},", msg);
+ lsp_debug!("{},", msg);
PerformanceMark {
name: name.to_string(),
count: *count,
@@ -169,7 +170,7 @@ impl Performance {
/// measurement to the internal buffer.
pub fn measure(&self, mark: PerformanceMark) -> Duration {
let measure = PerformanceMeasure::from(mark);
- debug!(
+ lsp_debug!(
"{},",
json!({
"type": "measure",