You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show --log-level debug hint when pipeline fails (#12603)
* Initial plan
* Add help message when pipeline fails
- Modified ConsoleActivityLogger to accept optional commandName in SetFinalResult
- Display help message when pipeline fails with command name
- Updated PipelineCommandBase to pass command name to logger
Co-authored-by: davidfowl <[email protected]>
* Use boolean field instead of string Contains check
Store the succeeded value from SetFinalResult in _pipelineSucceeded field
and use !_pipelineSucceeded instead of checking if string contains "PIPELINE FAILED"
Co-authored-by: davidfowl <[email protected]>
* Pass command name in ConsoleActivityLogger constructor
Move command name from SetFinalResult parameter to constructor parameter.
This is cleaner since the command name doesn't change throughout the
lifecycle of the logger.
Co-authored-by: davidfowl <[email protected]>
* Make commandName non-nullable in ConsoleActivityLogger
The commandName parameter is always provided from PipelineCommandBase.Name
and should never be null. Changed constructor signature to make it a
required parameter and removed null checks.
Co-authored-by: davidfowl <[email protected]>
* Reorganize fields for better maintainability
Move _finalStatusHeader and _pipelineSucceeded fields to the top with
other private fields for better organization and consistency.
Co-authored-by: davidfowl <[email protected]>
* Update help message and suppress when debug/trace logging enabled
- Changed message to generic "For more details, add --log-level debug/trace to the command."
- Suppress help message when user already passed --log-level debug or trace
- Replaced commandName parameter with isDebugOrTraceLoggingEnabled flag
Co-authored-by: davidfowl <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: davidfowl <[email protected]>
0 commit comments