adding second logging scope
This commit is contained in:
parent
8c9e9c637b
commit
81c4e16d34
@ -58,6 +58,8 @@ namespace Selector
|
|||||||
currentTask = userClient.GetRecentScrobbles(username, pagenumber: pageNumber, count: pageSize, from: from, to: to);
|
currentTask = userClient.GetRecentScrobbles(username, pagenumber: pageNumber, count: pageSize, from: from, to: to);
|
||||||
currentTask.ContinueWith(async t =>
|
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
|
try
|
||||||
{
|
{
|
||||||
netTime.Stop();
|
netTime.Stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user