mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: add git commit hash to Serilog context
This commit is contained in:
parent
2e387ecee9
commit
c38ca2e7fa
4 changed files with 9 additions and 6 deletions
|
|
@ -16,20 +16,20 @@ namespace PluralKit.Bot;
|
|||
|
||||
public class Init
|
||||
{
|
||||
private static Task Main(string[] args)
|
||||
private static async Task Main(string[] args)
|
||||
{
|
||||
// Load configuration and run global init stuff
|
||||
var config = InitUtils.BuildConfiguration(args).Build();
|
||||
InitUtils.InitStatic();
|
||||
|
||||
// init version service
|
||||
await BuildInfoService.LoadVersion();
|
||||
|
||||
// Set up DI container and modules
|
||||
var services = BuildContainer(config);
|
||||
|
||||
return RunWrapper(services, async ct =>
|
||||
await RunWrapper(services, async ct =>
|
||||
{
|
||||
// init version service
|
||||
await BuildInfoService.LoadVersion();
|
||||
|
||||
var logger = services.Resolve<ILogger>().ForContext<Init>();
|
||||
|
||||
// Initialize Sentry SDK, and make sure it gets dropped at the end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue