From 99caa61d4fdd666cb432f19c7e3b90a336b418ff Mon Sep 17 00:00:00 2001 From: amd64fox Date: Thu, 12 May 2022 21:40:05 +0300 Subject: [PATCH] Disabled logging --- Install.ps1 | 5 ++++- Install_Rus.ps1 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 3147f32..1de4d87 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -472,6 +472,9 @@ If (Test-Path $xpui_spa_patch) { # Experimental Feature $xpui_js = ExpFeature + + # Disabled logging + $xpui_js = $xpui_js -replace "sp://logging/v3/\w+", "" $writer = New-Object System.IO.StreamWriter($entry_xpui.Open()) $writer.BaseStream.SetLength(0) @@ -492,7 +495,7 @@ If (Test-Path $xpui_spa_patch) { $writer.Write($xpuiContents_vendor) $writer.Close() - # js + # js all $zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object { $readerjs = New-Object System.IO.StreamReader($_.Open()) $xpuiContents_js = $readerjs.ReadToEnd() diff --git a/Install_Rus.ps1 b/Install_Rus.ps1 index 6e19b44..96d18e8 100644 --- a/Install_Rus.ps1 +++ b/Install_Rus.ps1 @@ -610,6 +610,9 @@ If (Test-Path $xpui_spa_patch) { # Удалить из xpui.js все языки кроме En и Ru $xpui_js = OffRujs + + # Отключение логов + $xpui_js = $xpui_js -replace "sp://logging/v3/\w+", "" $writer = New-Object System.IO.StreamWriter($entry_xpui.Open()) $writer.BaseStream.SetLength(0) @@ -629,7 +632,7 @@ If (Test-Path $xpui_spa_patch) { $writer.Write($xpuiContents_vendor) $writer.Close() - # js + # js all $zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object { $readerjs = New-Object System.IO.StreamReader($_.Open()) $xpuiContents_js = $readerjs.ReadToEnd()