adding second logging scope

This commit is contained in:
andy 2022-07-01 22:05:09 +01:00
parent 8c9e9c637b
commit 81c4e16d34

View File

@ -58,6 +58,8 @@ namespace Selector
currentTask = userClient.GetRecentScrobbles(username, pagenumber: pageNumber, count: pageSize, from: from, to: to);
currentTask.ContinueWith(async t =>
{
using var scope = logger.BeginScope(new Dictionary<string, object>() { { "username", username }, { "page_number", pageNumber }, { "page_size", pageSize }, { "from", from }, { "to", to } });
try
{
netTime.Stop();