mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:37:22 +01:00
add more logging to mare wizard module
This commit is contained in:
parent
fee84aa1ff
commit
2f1b1f4b27
9 changed files with 68 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System.Collections.Concurrent;
|
||||
using Discord.Rest;
|
||||
using Discord.WebSocket;
|
||||
using MareSynchronosShared.Metrics;
|
||||
|
||||
namespace MareSynchronosServices.Discord;
|
||||
|
|
@ -46,13 +45,12 @@ public class DiscordBotServices
|
|||
verificationTaskCts = new CancellationTokenSource();
|
||||
while (!verificationTaskCts.IsCancellationRequested)
|
||||
{
|
||||
Logger.LogInformation("Processing Verification Queue, Entries: {entr}", VerificationQueue.Count);
|
||||
if (VerificationQueue.TryDequeue(out var queueitem))
|
||||
{
|
||||
try
|
||||
{
|
||||
queueitem.Value.Invoke(_serviceProvider);
|
||||
|
||||
Logger.LogInformation("Sent login information to user");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue