Update src/core.ps1
This commit is contained in:
12
src/core.ps1
12
src/core.ps1
@@ -92,13 +92,6 @@ function Invoke-ScriptAutomationMonkey {
|
||||
# Initialize config + URLs (moved out of core body)
|
||||
Initialize-SamyConfig
|
||||
|
||||
# Test URL Diagnostics
|
||||
Write-LogHybrid "SamyFunctionsUrl: $Script:SamyFunctionsUrl" Info Startup -LogToEvent
|
||||
Write-LogHybrid "SamyTasksUrl: $Script:SamyTasksUrl" Info Startup -LogToEvent
|
||||
Write-LogHybrid "SamyHtmlUrl: $Script:SamyHtmlUrl" Info Startup -LogToEvent
|
||||
Write-LogHybrid "SamyJsUrl: $Script:SamyJsUrl" Info Startup -LogToEvent
|
||||
Write-LogHybrid "SamyCssUrl: $Script:SamyCssUrl" Info Startup -LogToEvent
|
||||
|
||||
# Ensure core functions exist (bootstrap may have already loaded them)
|
||||
Ensure-SamyFunctionsLoaded
|
||||
|
||||
@@ -108,11 +101,6 @@ function Invoke-ScriptAutomationMonkey {
|
||||
|
||||
# Load tasks
|
||||
$Global:SamyTasks = Get-SamyTasks -Url $Script:SamyTasksUrl
|
||||
|
||||
# Test Prove task Loaded Diagnostics
|
||||
Write-LogHybrid "Tasks loaded: $(@($Global:SamyTasks).Count)" Info Startup -LogToEvent
|
||||
Write-LogHybrid ("Tasks by page: " + ((@($Global:SamyTasks) | Group-Object Page | ForEach-Object { "$($_.Name)=$($_.Count)" }) -join ', ')) Info Startup -LogToEvent
|
||||
|
||||
if (-not $Global:SamyTasks) {
|
||||
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user