fresh-mechanic-68429
02/21/2024, 3:46 PM-ldebug
, --logdir
and --keep-sandboxes=always
via rule_runner.set_options
but haven’t actually been able to find the logsbroad-processor-92400
02/21/2024, 3:56 PM_test.py
)fresh-mechanic-68429
02/21/2024, 4:13 PMdef test_foo(rule_runner: RuleRunner, caplog) -> None:
caplog.set_level(logging.DEBUG)
curved-television-6568
02/21/2024, 4:31 PMRuleRunner
, decorating your test with pantsbuild.testutil.rule_runner.logging
is usually also helpful: https://github.com/pantsbuild/pants/blob/ef0352086e1290c0ebf73808d2fd5fc4aa37d96e/src/python/pants/testutil/rule_runner.py#L74-L92fresh-mechanic-68429
02/21/2024, 4:54 PM