@@ -66,18 +66,18 @@ private async Task StartHttpServer(List<BaseHttpHandler> baseHandler, Func<strin
6666 // 验证HTTP URL格式
6767 if ( ! Setting . HttpUrl . StartsWith ( '/' ) )
6868 {
69- throw new ArgumentException ( "Http 地址必须以/开头 " , nameof ( Setting . HttpUrl ) ) ;
69+ throw new ArgumentException ( "The HTTP address must start with / " , nameof ( Setting . HttpUrl ) ) ;
7070 }
7171
7272 if ( ! Setting . HttpUrl . EndsWith ( '/' ) )
7373 {
74- throw new ArgumentException ( "Http 地址必须以/结尾 " , nameof ( Setting . HttpUrl ) ) ;
74+ throw new ArgumentException ( "The HTTP address must end in / " , nameof ( Setting . HttpUrl ) ) ;
7575 }
7676
77- LogHelper . InfoConsole ( "启动 [HTTP] 服务器 ..." ) ;
77+ LogHelper . InfoConsole ( "start the [HTTP] server ..." ) ;
7878 if ( ! Setting . HttpPort . IsRange ( 5000 , ushort . MaxValue - 1 ) )
7979 {
80- LogHelper . WarningConsole ( $ "启动 [HTTP] 服务器 端口 [{ Setting . HttpPort } ] 超出范围 [5000-{ ushort . MaxValue - 1 } ],无法启动HTTP服务,启动被忽略 ") ;
80+ LogHelper . WarningConsole ( $ "start the [HTTP] server port [{ Setting . HttpPort } ] out of range [5000-{ ushort . MaxValue - 1 } ],The HTTP service cannot be started, and the startup is ignored ") ;
8181 return ;
8282 }
8383
@@ -114,7 +114,7 @@ private async Task StartHttpServer(List<BaseHttpHandler> baseHandler, Func<strin
114114
115115 if ( Setting . HttpsPort > 0 && NetHelper . PortIsAvailable ( Setting . HttpsPort ) )
116116 {
117- throw new NotImplementedException ( "HTTPS 未实现,请取消HTTPS端口配置 " ) ;
117+ throw new NotImplementedException ( "If HTTPS is not implemented, cancel the HTTPS port configuration " ) ;
118118 }
119119 } ) ;
120120
@@ -146,7 +146,7 @@ private async Task StartHttpServer(List<BaseHttpHandler> baseHandler, Func<strin
146146
147147 foreach ( var ip in ipList )
148148 {
149- LogHelper . DebugConsole ( $ "Swagger UI 可通过 http://{ ip } :{ Setting . HttpPort } /swagger 访问 ") ;
149+ LogHelper . DebugConsole ( $ "Swagger UI can be passed http://{ ip } :{ Setting . HttpPort } /swagger access ") ;
150150 }
151151 }
152152
@@ -162,15 +162,15 @@ private async Task StartHttpServer(List<BaseHttpHandler> baseHandler, Func<strin
162162 app . MapPrometheusScrapingEndpoint ( ) ;
163163 foreach ( var ip in ipList )
164164 {
165- LogHelper . InfoConsole ( $ "Prometheus metrics 端点已启用 : http://{ ip } :{ Setting . HttpPort } /metrics") ;
165+ LogHelper . InfoConsole ( $ "Prometheus metrics the endpoint is enabled : http://{ ip } :{ Setting . HttpPort } /metrics") ;
166166 }
167167 }
168168 else if ( Setting . IsOpenTelemetry && Setting . IsOpenTelemetryMetrics && Setting . MetricsPort > 0 )
169169 {
170- LogHelper . InfoConsole ( $ "Prometheus metrics 将在独立端口 { Setting . MetricsPort } 上提供服务 ") ;
170+ LogHelper . InfoConsole ( $ "Prometheus metrics The service will be provided on the standalone port { Setting . MetricsPort } ") ;
171171 foreach ( var ip in ipList )
172172 {
173- LogHelper . InfoConsole ( $ "Prometheus metrics 端点已启用 : http://{ ip } :{ Setting . MetricsPort } /metrics") ;
173+ LogHelper . InfoConsole ( $ "Prometheus metrics the endpoint is enabled : http://{ ip } :{ Setting . MetricsPort } /metrics") ;
174174 }
175175 }
176176
@@ -202,11 +202,11 @@ private async Task StartHttpServer(List<BaseHttpHandler> baseHandler, Func<strin
202202 }
203203
204204 await app . StartAsync ( ) ;
205- LogHelper . InfoConsole ( $ "启动 [HTTP] 服务器启动完成 - 端口 : { Setting . HttpPort } ") ;
205+ LogHelper . InfoConsole ( $ "Start [HTTP] Server Startup Complete - Port : { Setting . HttpPort } ") ;
206206 }
207207 else
208208 {
209- LogHelper . Error ( $ "启动 [HTTP] 服务器 端口 [{ Setting . HttpPort } ] 被占用,无法启动HTTP服务 ") ;
209+ LogHelper . Error ( $ "Start [HTTP] server port [{ Setting . HttpPort } ] is occupied and the HTTP service cannot be started ") ;
210210 }
211211 }
212212
0 commit comments