dev: disable all runtime check to log::debug! (#912)

This commit is contained in:
Myriad-Dreamin 2024-11-29 19:52:42 +08:00 committed by GitHub
parent 8b495fe2ab
commit ed79045588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 158 additions and 159 deletions

View file

@ -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)

View file

@ -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);