From 52f6d2e900a95e7c655f8eea396583c3b44ac4c9 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Wed, 25 Jun 2025 00:40:10 -0400 Subject: [PATCH] fixed write-loghybrid commands --- StackMonkey.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index b88e104..400abee 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -180,13 +180,13 @@ if (Get-Command Write-Log -ErrorAction SilentlyContinue) { switch ($PSCmdlet.ParameterSetName) { 'Toolkit' { - Write-LogHelper "Toolkit-only mode" Info Startup + Write-LogHybrid "Toolkit-only mode" Info Startup Install-SVSMSP -InstallToolkit return } 'Datto' { - Write-LogHelper "Headless DattoRMM deploy (via n8n)" Info Startup + Write-LogHybrid "Headless DattoRMM deploy (via n8n)" Info Startup try{ # ──────────────────────────────────────────── # 1) Fetch URL, Key & Secret from n8n webhook @@ -201,10 +201,10 @@ try{ $Global:ApiKey = $creds.ApiKey $Global:ApiSecretKey = $creds.ApiSecretKey - Write-LogHelper "Fetched Datto API credentials from n8n" Success DattoAuth + Write-LogHybrid "Fetched Datto API credentials from n8n" Success DattoAuth } catch { - Write-LogHelper "N8N credential fetch error: $($_.Exception.Message)" Error DattoAuth + Write-LogHybrid "N8N credential fetch error: $($_.Exception.Message)" Error DattoAuth throw } @@ -281,7 +281,7 @@ $Global:Tasks = @( # If we got here, it's the UI set—launch browser + listener: # ——— UI fallback starts here ——— - Write-LogHelper "Launching UI" Info Startup + Write-LogHybrid "Launching UI" Info Startup #region Handler Stubs