From 854b7fd997e798265096cd867c110e9df378796d Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Tue, 15 Sep 2020 15:43:56 +0200 Subject: [PATCH] Fixes uncatched invisible output --- doc/31-Changelog.md | 1 + lib/core/framework/Start-IcingaTimer.psm1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index 2080900..8c73471 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -14,6 +14,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic ### Bugfixes * [#127](https://github.com/Icinga/icinga-powershell-framework/issues/127) Fixes wrong error message on failed MSSQL connection due to database not reachable by using `-IntegratedSecurity` +* [#128](https://github.com/Icinga/icinga-powershell-framework/issues/128) Fixes unhandled output from loading `System.Reflection.Assembly` which can cause weird side effects for plugin outputs ## 1.2.0 (2020-08-28) diff --git a/lib/core/framework/Start-IcingaTimer.psm1 b/lib/core/framework/Start-IcingaTimer.psm1 index 9671b6a..36f211a 100644 --- a/lib/core/framework/Start-IcingaTimer.psm1 +++ b/lib/core/framework/Start-IcingaTimer.psm1 @@ -32,7 +32,7 @@ function Start-IcingaTimer() } # Load the library first - [System.Reflection.Assembly]::LoadWithPartialName("System.Diagnostics"); + [System.Reflection.Assembly]::LoadWithPartialName("System.Diagnostics") | Out-Null; $TimerObject = New-Object System.Diagnostics.Stopwatch; $TimerObject.Start();