Skip to content
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

Lambda PowerShell Functions Do Not Log Debug Messages to CloudWatch Messages #1641

Open
ashovlin opened this issue Dec 12, 2023 · 0 comments
Labels
bug This issue is a bug. module/custom-runtime p2 This is a standard priority issue queued

Comments

@ashovlin
Copy link
Member

ashovlin commented Dec 12, 2023

Describe the bug

We already have internal case and ticket V1078993289 for this, but creating this so others can track a fix publicly.

Expected Behavior

"Write-Debug" should print to CloudWatch messages when adding -Debug parameter or using $DebugPreference to get the message displayed on console.

Current Behavior

Messages aren't logged.

Possible Solution

This probably is happening because "Write-Debug" isn't included in these events https://github.com/aws/aws-lambda-dotnet/blob/master/Libraries/src/Amazon.Lambda.PowerShellHost/PowerShellFunctionHost.cs#L294

@ashovlin ashovlin added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. p2 This is a standard priority issue queued and removed needs-triage This issue or PR still needs to be triaged. labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. module/custom-runtime p2 This is a standard priority issue queued
Projects
None yet
Development

No branches or pull requests

2 participants