@@ -13,7 +13,7 @@ if ($hasAppInsights) {
1313 try {
1414 $AppInsightsDllPath = Join-Path $PSScriptRoot ' Shared\AppInsights\Microsoft.ApplicationInsights.dll'
1515 $null = [Reflection.Assembly ]::LoadFile($AppInsightsDllPath )
16- Write-Information ' Application Insights SDK loaded successfully'
16+ Write-Debug ' Application Insights SDK loaded successfully'
1717 } catch {
1818 Write-Warning " Failed to load Application Insights SDK: $ ( $_.Exception.Message ) "
1919 }
@@ -52,13 +52,13 @@ if ($hasAppInsights -and -not $global:TelemetryClient) {
5252 $config.ConnectionString = $connectionString
5353 $global :TelemetryClient = [Microsoft.ApplicationInsights.TelemetryClient ]::new($config )
5454 Enable-CippConsoleLogging
55- Write-Information ' TelemetryClient initialized with connection string'
55+ Write-Debug ' TelemetryClient initialized with connection string'
5656 } elseif ($env: APPINSIGHTS_INSTRUMENTATIONKEY ) {
5757 # Fall back to instrumentation key
5858 $global :TelemetryClient = [Microsoft.ApplicationInsights.TelemetryClient ]::new()
5959 $global :TelemetryClient.InstrumentationKey = $env: APPINSIGHTS_INSTRUMENTATIONKEY
6060 Enable-CippConsoleLogging
61- Write-Information ' TelemetryClient initialized with instrumentation key'
61+ Write-Debug ' TelemetryClient initialized with instrumentation key'
6262 }
6363 } catch {
6464 Write-Warning " Failed to initialize TelemetryClient: $ ( $_.Exception.Message ) "
@@ -71,7 +71,7 @@ $SwDurableSDK = [System.Diagnostics.Stopwatch]::StartNew()
7171if ($env: ExternalDurablePowerShellSDK -eq $true ) {
7272 try {
7373 Import-Module AzureFunctions.PowerShell.Durable.SDK - ErrorAction Stop
74- Write-Information ' External Durable SDK enabled'
74+ Write-Debug ' External Durable SDK enabled'
7575 } catch {
7676 Write-LogMessage - message ' Failed to import module - AzureFunctions.PowerShell.Durable.SDK' - LogData (Get-CippException - Exception $_ ) - Sev ' debug'
7777 $_.Exception.Message
@@ -83,7 +83,7 @@ $Timings['DurableSDK'] = $SwDurableSDK.Elapsed.TotalMilliseconds
8383$SwAuth = [System.Diagnostics.Stopwatch ]::StartNew()
8484try {
8585 if (! $env: SetFromProfile ) {
86- Write-Information " We're reloading from KV"
86+ Write-Debug " We're reloading from KV"
8787 $Auth = Get-CIPPAuthentication
8888 }
8989} catch {
@@ -121,7 +121,7 @@ if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) {
121121
122122 $ReleaseTable = Get-CippTable - tablename ' cacheGitHubReleaseNotes'
123123 Remove-AzDataTableEntity @ReleaseTable - Entity @ { PartitionKey = ' GitHubReleaseNotes' ; RowKey = ' GitHubReleaseNotes' } - ErrorAction SilentlyContinue
124- Write-Host ' Cleared GitHub release notes cache to force refresh on version update.'
124+ Write-Debug ' Cleared GitHub release notes cache to force refresh on version update.'
125125}
126126$SwVersion.Stop ()
127127$Timings [' VersionCheck' ] = $SwVersion.Elapsed.TotalMilliseconds
0 commit comments