From 3daf4c1c6001c9e3acf29a4afbe9c9f686d3ceca Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 1 Apr 2025 22:00:07 +0200 Subject: [PATCH 1/2] fix: diagnostic logging of exceptions --- modules/Sentry/private/DiagnosticLogger.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Sentry/private/DiagnosticLogger.ps1 b/modules/Sentry/private/DiagnosticLogger.ps1 index 1dd2485..a334c5e 100644 --- a/modules/Sentry/private/DiagnosticLogger.ps1 +++ b/modules/Sentry/private/DiagnosticLogger.ps1 @@ -28,7 +28,7 @@ class DiagnosticLogger : Sentry.Extensibility.IDiagnosticLogger if ($null -ne $exception) { $message += [Environment]::NewLine - $message += $exception | Format-Table | Out-String + $message += $exception | Out-String } switch ($level) From 606362d8970b0d10137023944deff2091f42880e Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 1 Apr 2025 22:00:52 +0200 Subject: [PATCH 2/2] chore: changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 032e691..37d0208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixes - Attachments support regression introduced in v0.2.0 ([#80](https://github.com/getsentry/sentry-powershell/pull/80)) +- Diagnostic logs: exceptions didn't have full context ([#81](https://github.com/getsentry/sentry-powershell/pull/81)) ### Features