fix: 텔레그램 알림 예외에서 브라우저 강제 종료(JSDisconnectedException, TaskCanceledException) 필터링 추가
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m18s
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m18s
This commit is contained in:
@@ -28,6 +28,20 @@ public class TelegramSink : ILogEventSink
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter out harmless client disconnect and task cancellation exceptions
|
||||||
|
if (logEvent.Exception != null)
|
||||||
|
{
|
||||||
|
var exTypeName = logEvent.Exception.GetType().FullName ?? "";
|
||||||
|
var exMessage = logEvent.Exception.Message ?? "";
|
||||||
|
if (exTypeName.Contains("JSDisconnectedException") ||
|
||||||
|
exTypeName.Contains("TaskCanceledException") ||
|
||||||
|
exMessage.Contains("JavaScript interop calls cannot be issued") ||
|
||||||
|
exMessage.Contains("circuit has disconnected"))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Emit is a synchronous method, so we dispatch the network call asynchronously
|
// Emit is a synchronous method, so we dispatch the network call asynchronously
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user