Add proper logging of startup errors
This commit is contained in:
parent
fa70df8f98
commit
4701f4b56c
@ -89,6 +89,9 @@ namespace PluralKit.Bot
|
||||
}
|
||||
|
||||
logger.Information("Shutting down");
|
||||
|
||||
// Allow the log buffer to flush properly before exiting (needed for fatal errors)
|
||||
await Task.Delay(1000);
|
||||
}
|
||||
}
|
||||
class Bot
|
||||
|
Loading…
Reference in New Issue
Block a user