fix(logging): always capture debug logs to file while preserving console verbosity#430
Conversation
…-aw flags Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/78e8e09d-bd5a-43f7-83e6-6adf4097b88c Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
…resolution Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/78e8e09d-bd5a-43f7-83e6-6adf4097b88c Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
…err verbosity Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/fc1c4059-6c5b-40a3-b88d-c0a5baad0498 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
@copilot Since the logging files are always at debug level, we do not need to set invocation debug level for --debug-pipeline case - I would propose we remove the template marker from the changes and retain the optional flag and env var. |
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/b9291c25-ff23-4838-a2d9-e2a050dd7aa4 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
/rust-review |
Updated in 8473a38. I removed the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Summary
This PR addresses two logging gaps: debug artifacts were not consistently rich enough for post-mortem analysis, and log-path assumptions were too rigid. It makes file logs always debug-level while preserving operator-facing console verbosity, and aligns runtime/template log collection with configurable output directories.
File vs console log-level split
DEBUG+.--debug/--verbose/ default warn).Configurable ado-aw log directory
--log-output-dir.ADO_AW_LOG_DIRsupport.~/.ado-aw/logs).Pipeline debug/log collection alignment
--debug-pipelinecontinues to control MCPG diagnostics/probing behavior.--debuginjection ({{ ado_aw_debug_flags }}marker and usages).ADO_AW_LOG_DIRwith$HOME/.ado-aw/logsfallback, instead of hard-coding only the default path.Docs/tests
Test plan
cargo test generate_debug_pipeline_replacementscargo test test_debug_pipeline_cargo buildcargo testcargo clippy --all-targets --all-features