fix(es/module): Drop the level of a few tracing events (#9380)

**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>
This commit is contained in:
Alex Crawford 2024-08-05 17:17:13 -07:00 committed by GitHub
parent 09158b918c
commit 95af2536a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,6 @@
---
swc_core: patch
swc_ecma_loader: patch
---
fix(es/module): drop the priority of a few tracing events

View File

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