fixed write-loghybrid commands

This commit is contained in:
2025-06-25 00:40:10 -04:00
parent 78c66457af
commit 52f6d2e900

View File

@@ -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