From 0a252f4d2d0bfbd04f546075350354697d1ba1ca Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Tue, 12 Dec 2017 15:31:43 +0100
Subject: [PATCH] Minor logging changes.

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

diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1
index 1874112..82fc5e3 100644
--- a/AutoTx-Updater/Update-Service.ps1
+++ b/AutoTx-Updater/Update-Service.ps1
@@ -226,7 +226,7 @@ function Copy-ServiceFiles {
 function Update-ServiceBinaries {
     $MarkerFile = "$($UpdateMarkerPath)\$($env:COMPUTERNAME)"
     if (Test-Path "$MarkerFile" -Type Leaf) {
-        Write-Verbose "Found marker ($($MarkerFile)), not updating service."
+        Write-Verbose "Found marker [$($MarkerFile)], not updating service."
         Return $False
     }
     Log-Info "Marker file ($($MarkerFile)) missing, trying to update service."
@@ -234,12 +234,13 @@ function Update-ServiceBinaries {
     Copy-ServiceFiles
     try {
         New-Item -Type File "$MarkerFile" -ErrorAction Stop | Out-Null
-        Write-Verbose "Created marker file: $($MarkerFile)"
+        Write-Verbose "Created marker file [$($MarkerFile)]."
     }
     catch {
-        Log-Error "Creating $($MarkerFile) FAILED!`n$($_.Exception.Message)"
+        Log-Error "Creating [$($MarkerFile)] FAILED!`n$($_.Exception.Message)"
         Exit
     }
+    Log-Info "Service binaries were updated successfully."
     Return $True
 }
 
-- 
GitLab