Skip to content

Commit

Permalink
refactor: log filter in events API in Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Sep 17, 2024
1 parent fd5af23 commit 55090f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Common/src/gRPC/Services/WatchToGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ public async IAsyncEnumerable<EventSubscriptionResponse> GetEvents(string
: resultsFilters.ToResultFilter()
.ExpressionAnd(data => data.SessionId == sessionId);

logger_.LogDebug("Task {taskFilter}",
internalTasksFilter);
logger_.LogDebug("Result {resultFilter}",
internalResultsFilter);

using var scope = logger_.BeginPropertyScope(("sessionId", sessionId));

if (!events.Any() || events.Contains(EventsEnum.NewTask))
Expand Down

0 comments on commit 55090f3

Please sign in to comment.