cleanup CommandId from MappedDiagnosticsContext

pull/2/head
kay.one 11 years ago
parent 87da82dd90
commit 909439f615

@ -166,6 +166,13 @@ namespace NzbDrone.Core.Messaging
PublishEvent(new CommandUpdatedEvent(command));
throw;
}
finally
{
if (MappedDiagnosticsContext.Get("CommandId") == command.Id.ToString())
{
MappedDiagnosticsContext.Remove("CommandId");
}
}
PublishEvent(new CommandExecutedEvent(command));
PublishEvent(new CommandUpdatedEvent(command));

Loading…
Cancel
Save