-
Notifications
You must be signed in to change notification settings - Fork 148
Extended debug logging #1729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Extended debug logging #1729
Conversation
Leaving this is draft state until I come back from vacation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces extended debug logging across the AL-Go actions by adding a new helper module and wiring it into existing scripts.
- Added a
DebugLogHelper.psm1
module with functions for colored debug output and function-call tracing. - Imported
DebugLogHelper
in test helpers and the main invoke script. - Injected debug logging calls (
Write-Debug-FunctionCallInfo
andWrite-Debug-Info
) intoDetermineDeploymentEnvironments.ps1
.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
Tests/TestActionsHelper.psm1 | Imported DebugLogHelper.psm1 into the test helper module. |
Actions/Invoke-AlGoAction.ps1 | Added import of DebugLogHelper.psm1 for extended logging. |
Actions/DetermineDeploymentEnvironments/DetermineDeploymentEnvironments.ps1 | Inserted debug calls to trace function entry and request URLs. |
Actions/DebugLogHelper.psm1 | New module defining debug flags, color codes, and helper functions. |
Comments suppressed due to low confidence (1)
Actions/DetermineDeploymentEnvironments/DetermineDeploymentEnvironments.ps1:8
- This file uses
Write-Debug-FunctionCallInfo
without importingDebugLogHelper.psm1
; add anImport-Module
for the helper at the top so these functions are defined.
Write-Debug-FunctionCallInfo -FunctionName "DetermineDeploymentEnvironments" -Parameters $MyInvocation.BoundParameters
…ons to print groups and color support for regular logs.
No description provided.