mirror of
https://github.com/Caraxi/mare.server.git
synced 2026-01-03 09:33:39 +01:00
add more logging
This commit is contained in:
parent
b58d882686
commit
4192c9b212
2 changed files with 13 additions and 4 deletions
|
|
@ -191,6 +191,7 @@ public class GrpcClientIdentificationService : IHostedService
|
|||
try
|
||||
{
|
||||
using var stream = grpcIdentClientStreamOut.SendStreamIdentStatusChange(cancellationToken: cts);
|
||||
_logger.LogInformation("Starting Send Online Client Data stream");
|
||||
await stream.RequestStream.WriteAsync(new IdentChangeMessage()
|
||||
{
|
||||
Server = new ServerMessage()
|
||||
|
|
@ -226,6 +227,7 @@ public class GrpcClientIdentificationService : IHostedService
|
|||
{
|
||||
ServerId = _shardName,
|
||||
});
|
||||
_logger.LogInformation("Starting Receive Online Client Data stream");
|
||||
await foreach (var cur in stream.ResponseStream.ReadAllAsync(cts).ConfigureAwait(false))
|
||||
{
|
||||
if (cur.IsOnline)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue