diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 4614ca0cdd5..c4a9c244947 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -58,6 +58,11 @@ jobs: ServiceDirectory: ${{ parameters.ServiceDirectory }} PackageInfoDirectory: $(Build.ArtifactStagingDirectory)/PackageInfo + - pwsh: | + Write-Host "##vso[task.setvariable variable=Logging__LogLevel__Default]Debug" + displayName: 'Enable Verbose Logging' + condition: eq(variables['System.Debug'], 'true') + - ${{ if eq(parameters.TestProxy, true) }}: - template: /eng/common/testproxy/test-proxy-standalone-tool.yml @@ -96,3 +101,14 @@ jobs: cat $(Build.SourcesDirectory)/test-proxy.log displayName: 'Dump Test Proxy logs' condition: and(succeededOrFailed(), eq(variables['System.Debug'], 'true')) + + - pwsh: | + try { + $response = Invoke-WebRequest -Uri 'http://localhost:5000/Audit/Logs' -UseBasicParsing -ErrorAction Stop + Write-Host $response.Content + } catch { + Write-Host "Failed to retrieve Test Proxy Audit Logs from http://localhost:5000/Audit/Logs" + Write-Host $_ + } + displayName: 'Dump Test Proxy Audit Logs' + condition: and(succeededOrFailed(), eq(variables['System.Debug'], 'true')) diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index 1081a249974..9027c1ec398 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -101,6 +101,11 @@ jobs: ServiceDirectory: ${{ parameters.ServiceDirectory }} PackageInfoDirectory: $(Build.ArtifactStagingDirectory)/PackageInfo + - pwsh: | + Write-Host "##vso[task.setvariable variable=Logging__LogLevel__Default]Debug" + displayName: 'Enable Verbose Logging' + condition: eq(variables['System.Debug'], 'true') + - ${{ if parameters.UseFederatedAuth }}: - task: AzurePowerShell@5 displayName: "Test Packages - Federated Auth" diff --git a/eng/pipelines/templates/variables/rust.yml b/eng/pipelines/templates/variables/rust.yml index 25dd4188800..fb54d8c36e3 100644 --- a/eng/pipelines/templates/variables/rust.yml +++ b/eng/pipelines/templates/variables/rust.yml @@ -1,4 +1,4 @@ variables: RUSTFLAGS: "-Dwarnings" RUSTDOCFLAGS: "-Dwarnings" - RUST_LOG: $[iif(eq(variables['System.Debug'], 'true'), 'debug', '')] + RUST_LOG: $[iif(eq(variables['System.Debug'], 'true'), 'trace', 'info')]