-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log infinite symlink offender (#20985)
Gave this a stab since I have infinite free time now, ~~but I have no idea how to see the warning output in tests~~. Figured out the (seemingly) only way to see log output in tests is by using the `env_logger` crate and running with the `RUST_LOG=warn` env var set. The following command spits out the subsequent log messages in the tests: `RUST_LOG=warn ./cargo test -p fs -- --nocapture` ``` [2024-06-04T17:37:12Z WARN fs::directory] Exceeded the maximum link depth while traversing link `self` to path ".". Stopping traversal. [2024-06-04T17:37:12Z WARN fs::directory] Exceeded the maximum link depth while traversing link `self` to path ".". Stopping traversal. ``` --------- Co-authored-by: Huon Wilson <huon@exoflare.io>
- Loading branch information
1 parent
863b229
commit c4da187
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters