mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
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:
parent
09158b918c
commit
95af2536a2
6
.changeset/few-rules-cough.md
Normal file
6
.changeset/few-rules-cough.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
swc_core: patch
|
||||
swc_ecma_loader: patch
|
||||
---
|
||||
|
||||
fix(es/module): drop the priority of a few tracing events
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user