mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Chained commands keep the same CommandId in nlog context
This commit is contained in:
@@ -145,7 +145,10 @@ namespace NzbDrone.Common.Messaging
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
MappedDiagnosticsContext.Set("CommandId", trackedCommand.Command.CommandId);
|
if (!MappedDiagnosticsContext.Contains("CommandId"))
|
||||||
|
{
|
||||||
|
MappedDiagnosticsContext.Set("CommandId", trackedCommand.Command.CommandId);
|
||||||
|
}
|
||||||
|
|
||||||
PublishEvent(new CommandStartedEvent(trackedCommand));
|
PublishEvent(new CommandStartedEvent(trackedCommand));
|
||||||
handler.Execute(command);
|
handler.Execute(command);
|
||||||
|
|||||||
Reference in New Issue
Block a user