Skip to content

Commit

Permalink
Calling Remove-CoolOrangeLogging before initializing it again, as the…
Browse files Browse the repository at this point in the history
…re is no onloggoff event to call it
  • Loading branch information
ThomasRossmeisl committed Nov 24, 2022
1 parent fa2603b commit 59a3514
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Files/powerEvents/Events/TransferERPItemViaFileTab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Connect-ERP -Service 'http://thomas-rossi:8080/PGS/ErpServices'
$global:addinPath = $PSScriptRoot
Import-Module "C:\ProgramData\coolOrange\powerGate\Modules\Initialize.psm1" -Global
Initialize-CoolOrange

Remove-CoolOrangeLogging
$logPath = Join-Path $env:LOCALAPPDATA "coolOrange\Projects\VDS_Vault-powerGate.log"
Set-LogFilePath -Path $logPath

Expand Down
2 changes: 2 additions & 0 deletions Files/powerEvents/Events/TransferERPItemViaItemTab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Connect-ERP -Service 'http://thomas-rossi:8080/PGS/ErpServices'
$global:addinPath = $PSScriptRoot
Import-Module "C:\ProgramData\coolOrange\powerGate\Modules\Initialize.psm1" -Global
Initialize-CoolOrange

Remove-CoolOrangeLogging
$logPath = Join-Path $env:LOCALAPPDATA "coolOrange\Projects\VDS_Vault-powerGate.log"
Set-LogFilePath -Path $logPath

Expand Down

0 comments on commit 59a3514

Please sign in to comment.