pants
pants copied to clipboard
Log infinite symlink offender
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.