@@ -78,7 +78,7 @@ function New-CippCoreRequest {
7878 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
7979 $HttpTimingsRounded = [ordered ]@ {}
8080 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
81- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
81+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
8282 return $Access
8383 }
8484 } catch {
@@ -87,7 +87,7 @@ function New-CippCoreRequest {
8787 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
8888 $HttpTimingsRounded = [ordered ]@ {}
8989 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
90- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
90+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
9191 return ([HttpResponseContext ]@ {
9292 StatusCode = [HttpStatusCode ]::Forbidden
9393 Body = $_.Exception.Message
@@ -150,7 +150,7 @@ function New-CippCoreRequest {
150150 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
151151 $HttpTimingsRounded = [ordered ]@ {}
152152 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
153- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
153+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
154154 return ([HttpResponseContext ]($HttpResponse | Select-Object - First 1 ))
155155 } else {
156156 # If no valid response context found, create a default success response
@@ -169,7 +169,7 @@ function New-CippCoreRequest {
169169 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
170170 $HttpTimingsRounded = [ordered ]@ {}
171171 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
172- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
172+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
173173 return ([HttpResponseContext ]@ {
174174 StatusCode = [HttpStatusCode ]::OK
175175 Body = $Response
@@ -183,7 +183,7 @@ function New-CippCoreRequest {
183183 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
184184 $HttpTimingsRounded = [ordered ]@ {}
185185 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
186- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
186+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
187187 return ([HttpResponseContext ]@ {
188188 StatusCode = [HttpStatusCode ]::InternalServerError
189189 Body = $_.Exception.Message
@@ -194,7 +194,7 @@ function New-CippCoreRequest {
194194 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
195195 $HttpTimingsRounded = [ordered ]@ {}
196196 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
197- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
197+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
198198 return ([HttpResponseContext ]@ {
199199 StatusCode = [HttpStatusCode ]::NotFound
200200 Body = ' Endpoint not found'
@@ -205,7 +205,7 @@ function New-CippCoreRequest {
205205 $HttpTimings [' Total' ] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds
206206 $HttpTimingsRounded = [ordered ]@ {}
207207 foreach ($Key in ($HttpTimings.Keys | Sort-Object )) { $HttpTimingsRounded [$Key ] = [math ]::Round($HttpTimings [$Key ], 2 ) }
208- Write-Information " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
208+ Write-Debug " #### HTTP Request Timings #### $ ( $HttpTimingsRounded | ConvertTo-Json - Compress) "
209209 return ([HttpResponseContext ]@ {
210210 StatusCode = [HttpStatusCode ]::PreconditionFailed
211211 Body = ' Request not processed'
0 commit comments