diff --git a/src/Squidex.Infrastructure/Commands/DomainObjectGrainBase.cs b/src/Squidex.Infrastructure/Commands/DomainObjectGrainBase.cs index 04ba13d80..61501f7ac 100644 --- a/src/Squidex.Infrastructure/Commands/DomainObjectGrainBase.cs +++ b/src/Squidex.Infrastructure/Commands/DomainObjectGrainBase.cs @@ -49,10 +49,12 @@ namespace Squidex.Infrastructure.Commands protected sealed override async Task OnActivateAsync(Guid key) { - using (log.MeasureInformation(w => w + var logContext = (key: key.ToString(), name: GetType().Name); + + using (log.MeasureInformation(logContext, (ctx, w) => w .WriteProperty("action", "ActivateDomainObject") - .WriteProperty("domainObjectType", GetType().Name) - .WriteProperty("domainObjectKey", key.ToString()))) + .WriteProperty("domainObjectType", ctx.name) + .WriteProperty("domainObjectKey", ctx.key))) { id = key;