Skip to content

Commit

Permalink
fix(es/module): Drop the level of a few tracing events (#9380)
Browse files Browse the repository at this point in the history
**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/강동윤 <kdy1997.dev@gmail.com>
  • Loading branch information
crawford and kdy1 authored Aug 6, 2024
1 parent 09158b9 commit 95af253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/few-rules-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
swc_core: patch
swc_ecma_loader: patch
---

fix(es/module): drop the priority of a few tracing events
6 changes: 3 additions & 3 deletions crates/swc_ecma_loader/src/resolvers/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)
Expand Down Expand Up @@ -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())
)
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit 95af253

Please sign in to comment.