Skip to content

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

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

spetersenms
Copy link
Contributor

No description provided.

@spetersenms
Copy link
Contributor Author

Leaving this is draft state until I come back from vacation.

@spetersenms spetersenms marked this pull request as ready for review June 18, 2025 13:20
@Copilot Copilot AI review requested due to automatic review settings June 18, 2025 13:20
@spetersenms spetersenms requested a review from a team as a code owner June 18, 2025 13:20
Copy link
Contributor

@Copilot Copilot AI left a 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 and Write-Debug-Info) into DetermineDeploymentEnvironments.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 importing DebugLogHelper.psm1; add an Import-Module for the helper at the top so these functions are defined.
Write-Debug-FunctionCallInfo -FunctionName "DetermineDeploymentEnvironments" -Parameters $MyInvocation.BoundParameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant