diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index b69eb26605944cb812fa0afcb0c8dd8d06167199..0adec583ee916b3622a7d8a2aeed2acc2fab2b7c 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 } }