pants icon indicating copy to clipboard operation
pants copied to clipboard

Log infinite symlink offender

Open ndellosa95 opened this issue 1 year ago • 0 comments

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.

ndellosa95 avatar May 31 '24 13:05 ndellosa95