File tree Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ Function Enable-RemoteRegistry {
4343 }
4444 }
4545 catch {
46- $ErrorMessage = $Comp + " Error: " + $_.Exception.Message
4746 Add-Content " .\assets\settings\log.txt" - Value " $_ "
4847 }
4948 }
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ Function Set-Error {
33 param (
44 [string ]$Message
55 )
6- Add-Content " .\assets\settings\log.txt" - Value " [$ ( Get-Date ) ]`n $Message `n "
6+ $path = Get-Location
7+ $path = $path.Path + " \storage\data\log.txt"
8+ Add-Content " $path " - Value " [$ ( Get-Date ) ]`n $Message `n "
79}
810
911Function Enable-WinRM {
Original file line number Diff line number Diff line change 55. .\assets\scripts\functions.ps1
66
77$dontInvoke = $false
8- if ($Computer -eq $env: COMPUTERNAME ){
8+ if ($Computer -eq $env: COMPUTERNAME ) {
99 $dontInvoke = $true
1010}
1111
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2875,7 +2875,7 @@ def open_errors(e):
28752875
28762876 data = {
28772877 "txt_document" : True ,
2878- "txt_data" : "assets/settings/log.txt "
2878+ "txt_data" : f" { logging_path } "
28792879 }
28802880
28812881 content_container = ft .Column ([
You can’t perform that action at this time.
0 commit comments