mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
add more logging
This commit is contained in:
parent
b58d882686
commit
4192c9b212
2 changed files with 13 additions and 4 deletions
|
|
@ -105,13 +105,20 @@ internal class IdentityService : IdentificationService.IdentificationServiceBase
|
|||
{
|
||||
while (!context.CancellationToken.IsCancellationRequested)
|
||||
{
|
||||
while (identChanges.ContainsKey(server) && identChanges[server].TryDequeue(out var cur))
|
||||
if (identChanges.ContainsKey(server))
|
||||
{
|
||||
_logger.LogInformation("Sending " + cur.UidWithIdent.Uid.Uid + " to " + server);
|
||||
await responseStream.WriteAsync(cur).ConfigureAwait(false);
|
||||
if (identChanges[server].TryDequeue(out var cur))
|
||||
{
|
||||
_logger.LogInformation("Sending " + cur.UidWithIdent.Uid.Uid + " to " + server);
|
||||
await responseStream.WriteAsync(cur).ConfigureAwait(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogInformation("Nothing to send to " + server);
|
||||
}
|
||||
}
|
||||
|
||||
await Task.Delay(10).ConfigureAwait(false);
|
||||
await Task.Delay(250).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue