Skip to content

Commit

Permalink
feat: set debug mode back to info
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Mar 10, 2024
1 parent 5a9990f commit 0dc3e05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/tinymist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use anyhow::Context;
use crossbeam_channel::select;
use crossbeam_channel::Receiver;
use futures::future::BoxFuture;
use log::{debug, error, info, trace, warn};
use log::{error, info, trace, warn};
use lsp_server::{ErrorCode, Message, Notification, Request, ResponseError};
use lsp_types::notification::{Notification as NotificationTrait, PublishDiagnostics};
use lsp_types::request::{RegisterCapability, UnregisterCapability, WorkspaceConfiguration};
Expand Down Expand Up @@ -129,7 +129,7 @@ impl LspHost {

pub fn register_request(&self, request: &lsp_server::Request, request_received: Instant) {
let mut req_queue = self.req_queue.lock();
debug!(
info!(
"handling {} - ({}) at {:0.2?}",
request.method, request.id, request_received
);
Expand All @@ -148,7 +148,7 @@ impl LspHost {
// }

let duration = start.elapsed();
debug!(
info!(
"handled {} - ({}) in {:0.2?}",
method, response.id, duration
);
Expand Down Expand Up @@ -477,7 +477,7 @@ impl TypstLanguageServer {
request_received: Instant,
not: Notification,
) -> anyhow::Result<()> {
debug!("notifying {} - at {:0.2?}", not.method, request_received);
info!("notifying {} - at {:0.2?}", not.method, request_received);

let Some(handler) = self.notify_cmds.get(not.method.as_str()) else {
warn!("unhandled notification: {}", not.method);
Expand Down
2 changes: 1 addition & 1 deletion crates/tinymist/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn main() -> anyhow::Result<()> {
let _ = {
use log::LevelFilter::*;
env_logger::builder()
.filter_module("tinymist", Debug)
.filter_module("tinymist", Info)
.filter_module("typst_preview", Debug)
.filter_module("typst_ts", Info)
.filter_module("typst_ts_compiler::service::compile", Info)
Expand Down

0 comments on commit 0dc3e05

Please sign in to comment.