diff --git a/install_alloy.ps1 b/install_alloy.ps1 index 939f263..3818c53 100644 --- a/install_alloy.ps1 +++ b/install_alloy.ps1 @@ -23,7 +23,7 @@ $GitHubLatestApi = "https://api.github.com/repos/grafana/alloy/releases/latest" function Write-Log { param([string]$Message, [string]$Level = "INFO") $line = "[{0}] [{1}] {2}" -f (Get-Date -Format "yyyy-MM-dd HH:mm:ss"), $Level, $Message - Write-Host $line -ForegroundColor (If ($Level -eq "ERROR") { "Red" } Else { "White" }) + Write-Host $line } function Ensure-Directory {