Skip to content

Commit

Permalink
ensure that all the logs in recordinghandler are propelery set to the…
Browse files Browse the repository at this point in the history
… TRACE level
  • Loading branch information
scbedd committed Oct 25, 2023
1 parent ad11f59 commit 20e39b3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}

Expand Down Expand Up @@ -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))
{
Expand All @@ -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)
Expand Down

0 comments on commit 20e39b3

Please sign in to comment.