From 20e39b3a22d384e59bc646b3e545f6f9dbaafeca Mon Sep 17 00:00:00 2001 From: "Scott Beddall (from Dev Box)" Date: Wed, 25 Oct 2023 11:13:44 -0700 Subject: [PATCH] ensure that all the logs in recordinghandler are propelery set to the TRACE level --- .../Azure.Sdk.Tools.TestProxy/RecordingHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs index a612b9ea60b..0beb7fca889 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs @@ -174,7 +174,7 @@ private async Task RestoreAssetsJson(string assetsJson = null, bool forceCheckou public async Task StartRecordingAsync(string sessionId, HttpResponse outgoingResponse, string assetsJson = null) { var id = Guid.NewGuid().ToString(); - DebugLogger.LogInformation($"RECORD START BEGIN {id}."); + DebugLogger.LogTrace($"RECORD START BEGIN {id}."); await RestoreAssetsJson(assetsJson, false); @@ -189,7 +189,7 @@ public async Task StartRecordingAsync(string sessionId, HttpResponse outgoingRes throw new HttpException(HttpStatusCode.InternalServerError, $"Unexpectedly failed to add new recording session under id {id}."); } - DebugLogger.LogInformation($"RECORD START END {id}."); + DebugLogger.LogTrace($"RECORD START END {id}."); outgoingResponse.Headers.Add("x-recording-id", id); } @@ -420,7 +420,7 @@ public void StopPlayback(string recordingId, bool purgeMemoryStore = false) { var id = Guid.NewGuid().ToString(); - DebugLogger.LogInformation($"PLAYBACK STOP BEGIN {id}."); + DebugLogger.LogTrace($"PLAYBACK STOP BEGIN {id}."); if (!PlaybackSessions.TryRemove(recordingId, out var session)) { @@ -444,7 +444,7 @@ public void StopPlayback(string recordingId, bool purgeMemoryStore = false) GC.Collect(); } - DebugLogger.LogInformation($"PLAYBACK STOP END {id}."); + DebugLogger.LogTrace($"PLAYBACK STOP END {id}."); } public async Task HandlePlaybackRequest(string recordingId, HttpRequest incomingRequest, HttpResponse outgoingResponse)