Changeset e03a60de87a6…
Parent 12049204e939…
by Ben McCormack <benm@fogcreek.com>
Changes to one file · Browse files at e03a60de87a6 Showing diff from parent 12049204e939 Diff from another changeset...
@@ -35,15 +35,15 @@ }
}
-function Check-KilnBackend([string] $sRepoGUID, [string] $sChangeset1, [string] $sChangeset2){
+function Check-KilnBackend([string] $sRepoGUID, [string] $sChangeset1, [string] $sChangeset2, [string] $logFile){
if (-Not ((Test-KilnVersion) -and (Test-KilnDiff $sRepoGUID $sChangeset1 $sChangeset2))){
#Restart the Kiln storage Service because something bad happened
- write "$(Get-Date -format o) Something is wrong. Restarting Kiln Storage Service"
+ write "$(Get-Date -format o) Something is wrong. Restarting Kiln Storage Service" | out-file -append $logFile
Restart-Service "KilnStorageService"
return $False
}
else {
- write "$(Get-Date -format o) Kiln backend is OK"
+ write "$(Get-Date -format o) Kiln backend is OK" | out-file -append $logFile
return $True
}
}
|
Loading...