reduce logging for player null

This commit is contained in:
rootdarkarchon
2023-05-11 01:07:12 +02:00
parent 529b8e4c37
commit e70290975d
2 changed files with 2 additions and 8 deletions

View File

@@ -364,12 +364,6 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
Logger.LogDebug("[{applicationId}] Application finished", _applicationId);
}
catch (ArgumentNullException ex)
{
Logger.LogWarning(ex, "[{applicationId}] Cancelled, player turned null during application", _applicationId);
IsVisible = false;
_applyLastReceivedDataOnVisible = true;
}
catch (Exception ex)
{
if (ex is AggregateException aggr && aggr.InnerExceptions.Any(e => e is ArgumentNullException))
@@ -377,7 +371,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
IsVisible = false;
_applyLastReceivedDataOnVisible = true;
_cachedData = charaData;
Logger.LogWarning(aggr, "[{applicationId}] Cancelled, player turned null during application", _applicationId);
Logger.LogDebug("[{applicationId}] Cancelled, player turned null during application", _applicationId);
}
else
{

View File

@@ -109,7 +109,7 @@ public class FileTransferOrchestrator : DisposableMediatorSubscriberBase
}
catch (Exception ex)
{
Logger.LogCritical(ex, "Error during SendRequestInternal for {uri}", requestMessage.RequestUri);
Logger.LogWarning(ex, "Error during SendRequestInternal for {uri}", requestMessage.RequestUri);
throw;
}
}