From 95af2536a2cd5040f44e93f2eea9cf577558f335 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Mon, 5 Aug 2024 17:17:13 -0700 Subject: [PATCH] fix(es/module): Drop the level of a few tracing events (#9380) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description:** These events don't represent an error condition -- they're informative -- and they're making our logs a little noisy. --------- Co-authored-by: Donny/강동윤 --- .changeset/few-rules-cough.md | 6 ++++++ crates/swc_ecma_loader/src/resolvers/node.rs | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/few-rules-cough.md diff --git a/.changeset/few-rules-cough.md b/.changeset/few-rules-cough.md new file mode 100644 index 00000000000..fa68a91b130 --- /dev/null +++ b/.changeset/few-rules-cough.md @@ -0,0 +1,6 @@ +--- +swc_core: patch +swc_ecma_loader: patch +--- + +fix(es/module): drop the priority of a few tracing events diff --git a/crates/swc_ecma_loader/src/resolvers/node.rs b/crates/swc_ecma_loader/src/resolvers/node.rs index bc2d74fc749..7eaabb4f9bb 100644 --- a/crates/swc_ecma_loader/src/resolvers/node.rs +++ b/crates/swc_ecma_loader/src/resolvers/node.rs @@ -157,7 +157,7 @@ impl NodeModulesResolver { let _tracing = if cfg!(debug_assertions) { Some( tracing::span!( - Level::ERROR, + Level::TRACE, "resolve_as_file", path = tracing::field::display(path.display()) ) @@ -239,7 +239,7 @@ impl NodeModulesResolver { let _tracing = if cfg!(debug_assertions) { Some( tracing::span!( - Level::ERROR, + Level::TRACE, "resolve_as_directory", path = tracing::field::display(path.display()) ) @@ -279,7 +279,7 @@ impl NodeModulesResolver { let _tracing = if cfg!(debug_assertions) { Some( tracing::span!( - Level::ERROR, + Level::TRACE, "resolve_package_entry", pkg_dir = tracing::field::display(pkg_dir.display()), pkg_path = tracing::field::display(pkg_path.display()),