From 21cba71ff138dcfc1cabe128fa5b07d5d5509494 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Thu, 14 Dec 2017 10:41:30 +0100
Subject: [PATCH] Use Log-Warning for non-critical / non-terminating messages.

---
 Updater/Update-Service.ps1 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1
index b69eb26..0adec58 100644
--- a/Updater/Update-Service.ps1
+++ b/Updater/Update-Service.ps1
@@ -299,8 +299,7 @@ function Upload-LogFiles {
         Write-Verbose "Uploaded logfile to [$($LogfileUpload)]."
     }
     catch {
-        Log-Error "Uploading logfile FAILED!`n$($_.Exception.Message)"
-        # do not exit here, error on log file uploading is non-critical!
+        Log-Warning "Uploading logfile FAILED!`n$($_.Exception.Message)"
     }
 }
 
@@ -325,9 +324,9 @@ function Send-MailReport([string]$Subject, [string]$Body) {
     }
     catch {
         $ex = $_.Exception.Message
-        $msg = "Error sending email!`n`n$($msg)"
+        $msg = "Sending email failed!`n`n$($msg)"
         $msg += "Exception message: $($ex)"
-        Log-Error -Message $msg
+        Log-Warning -Message $msg
     }
 }
 
-- 
GitLab