Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GameFrameX.Localization/Keys.RemoteMessaging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static class Observability
/// <summary>
/// 远程消息客户端类别键
/// </summary>
public static class Client
public static class ClientModule
{
/// <summary>
/// SendOneWayAsync: 熔断器已打开, Service: {0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,15 +555,15 @@ public async Task SendOneWayAsync(
if (!_circuitBreaker.IsAllowed(serviceName))
{
// Localization: RemoteMessaging.Client.SendOneWayCircuitBreakerOpen - SendOneWayAsync: 熔断器已打开, Service: {0}
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayCircuitBreakerOpen, serviceName));
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayCircuitBreakerOpen, serviceName));
return;
}

var healthScore = _healthEvaluator.GetHealthScore(serviceName);
if (healthScore <= 0)
{
// Localization: RemoteMessaging.Client.SendOneWayHealthScoreLow - SendOneWayAsync: 服务健康评分过低, Service: {0}, Score: {1}
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayHealthScoreLow, serviceName, healthScore));
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayHealthScoreLow, serviceName, healthScore));
return;
}

Expand All @@ -576,7 +576,7 @@ public async Task SendOneWayAsync(
if (_protocolVersionNegotiator != null && !_protocolVersionNegotiator.IsCompatible(requestMessage.GetType()))
{
// Localization: RemoteMessaging.Client.SendOneWayProtocolVersionIncompatible - SendOneWayAsync: 协议版本不兼容, MessageType: {0}
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayProtocolVersionIncompatible, requestMessage.GetType().Name));
LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayProtocolVersionIncompatible, requestMessage.GetType().Name));
return;
}

Expand Down Expand Up @@ -692,7 +692,7 @@ private async Task RunExceptionInterceptorsAsync(RemoteCallContext context, Mess
catch (Exception ex)
{
// Localization: RemoteMessaging.Client.InterceptorOnExceptionFailed - 拦截器 OnExceptionAsync 失败
LogHelper.Error(ex, LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.InterceptorOnExceptionFailed));
LogHelper.Error(ex, LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.InterceptorOnExceptionFailed));
}
}
}
Expand Down
Loading