mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
dev: disable all runtime check to log::debug! (#912)
This commit is contained in:
parent
8b495fe2ab
commit
ed79045588
33 changed files with 158 additions and 159 deletions
|
|
@ -54,7 +54,7 @@ pub fn module_docs(ctx: &mut LocalContext, entry_point: FileId) -> StrResult<Pac
|
|||
})
|
||||
.collect();
|
||||
|
||||
log::debug!("module_uses: {module_uses:#?}",);
|
||||
crate::log_debug_ct!("module_uses: {module_uses:#?}",);
|
||||
|
||||
defs.children.extend(extras);
|
||||
|
||||
|
|
@ -184,11 +184,11 @@ impl ScanDefCtx<'_> {
|
|||
aliases_vec.push(path.iter().join("."));
|
||||
|
||||
if !is_fresh {
|
||||
log::debug!("found module: {path:?} (reexport)");
|
||||
crate::log_debug_ct!("found module: {path:?} (reexport)");
|
||||
return None;
|
||||
}
|
||||
|
||||
log::debug!("found module: {path:?}");
|
||||
crate::log_debug_ct!("found module: {path:?}");
|
||||
|
||||
let ei = self.ctx.expr_stage_by_id(fid)?;
|
||||
|
||||
|
|
@ -239,7 +239,7 @@ impl ScanDefCtx<'_> {
|
|||
path.push("-");
|
||||
path.push(key);
|
||||
|
||||
log::debug!("found internal module: {path:?}");
|
||||
crate::log_debug_ct!("found internal module: {path:?}");
|
||||
if let Some(m) = src {
|
||||
let msym = self.defs(path, m);
|
||||
self.extras.push(msym)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ pub fn package_docs(ctx: &mut LocalContext, spec: &PackageInfo) -> StrResult<Str
|
|||
|
||||
let PackageDefInfo { root, module_uses } = module_docs(ctx, entry_point)?;
|
||||
|
||||
log::debug!("module_uses: {module_uses:#?}");
|
||||
crate::log_debug_ct!("module_uses: {module_uses:#?}");
|
||||
|
||||
let title = for_spec.to_string();
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ pub fn package_docs(ctx: &mut LocalContext, spec: &PackageInfo) -> StrResult<Str
|
|||
let _ = writeln!(md, "---\n## Module: {primary}");
|
||||
}
|
||||
|
||||
log::debug!("module: {primary} -- {parent_ident}");
|
||||
crate::log_debug_ct!("module: {primary} -- {parent_ident}");
|
||||
|
||||
let persist_fid = fid.map(|f| file_ids.insert_full(f).0);
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ pub fn package_docs(ctx: &mut LocalContext, spec: &PackageInfo) -> StrResult<Str
|
|||
}
|
||||
|
||||
if !child_children.is_empty() {
|
||||
log::debug!("sub_fid: {child_fid:?}");
|
||||
crate::log_debug_ct!("sub_fid: {child_fid:?}");
|
||||
match child_fid {
|
||||
Some(fid) => {
|
||||
let aka = akas(fid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue