Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Mar 25, 2019
1 parent 5b2580f commit c923a3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Squidex.Infrastructure/Orleans/GrainBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ public async Task StartAsync(CancellationToken ct = default)
}
}
}

public override string ToString()
{
return typeof(T).ToString();
}
}
}
2 changes: 1 addition & 1 deletion src/Squidex/Config/Startup/BackgroundHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}
}
Expand Down

0 comments on commit c923a3d

Please sign in to comment.