diff --git a/src/Squidex.Infrastructure/Orleans/GrainBootstrap.cs b/src/Squidex.Infrastructure/Orleans/GrainBootstrap.cs index 7177e4fbef..ae47858a5b 100644 --- a/src/Squidex.Infrastructure/Orleans/GrainBootstrap.cs +++ b/src/Squidex.Infrastructure/Orleans/GrainBootstrap.cs @@ -45,5 +45,10 @@ public async Task StartAsync(CancellationToken ct = default) } } } + + public override string ToString() + { + return typeof(T).ToString(); + } } } diff --git a/src/Squidex/Config/Startup/BackgroundHost.cs b/src/Squidex/Config/Startup/BackgroundHost.cs index 3691ba6767..41bef8f723 100644 --- a/src/Squidex/Config/Startup/BackgroundHost.cs +++ b/src/Squidex/Config/Startup/BackgroundHost.cs @@ -32,7 +32,7 @@ protected override async Task StartAsync(ISemanticLog log, CancellationToken ct) { await target.StartAsync(ct); - log.LogInformation(w => w.WriteProperty("backgroundSystem", target.GetType().Name)); + log.LogInformation(w => w.WriteProperty("backgroundSystem", target.ToString())); } } }