You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/OneBotBotImpl.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -321,14 +321,14 @@ internal class OneBotBotImpl(
321
321
322
322
while (session ==null&& retryTimes <= connectMaxRetryTimes) {
323
323
try {
324
-
logger.debug("Connect to ws server {}", eventServerHost)
324
+
logger.debug("Connect to ws server {}", wsHost)
325
325
session = createSession()
326
326
} catch (e:Exception) {
327
327
retryTimes++
328
328
329
329
@Suppress("ConvertTwoComparisonsToRangeCheck")
330
330
if (connectMaxRetryTimes >0&& retryTimes > connectMaxRetryTimes) {
331
-
"Connect to ws server $eventServerHost failed in $retryTimes times.".also { msg ->
331
+
"Connect to ws server $wsHost failed in $retryTimes times.".also { msg ->
332
332
val ex =IllegalStateException(msg)
333
333
sessionJob.completeExceptionally(ex)
334
334
@@ -339,7 +339,7 @@ internal class OneBotBotImpl(
339
339
if (logger.isWarnEnabled()) {
340
340
logger.warn(
341
341
"Connect to ws server {} failed: {}, retry in {}...",
342
-
eventServerHost,
342
+
wsHost,
343
343
e.message,
344
344
connectRetryDelay.toString(),
345
345
e,
@@ -386,7 +386,7 @@ internal class OneBotBotImpl(
386
386
387
387
if (currentSession ==null) return
388
388
389
-
logger.debug("Connected to ws server {}, session: {}", eventServerHost, currentSession)
389
+
logger.debug("Connected to ws server {}, session: {}", wsHost, currentSession)
0 commit comments