From a2f93ab0aba0b65659fb8ffc7ee610419a4acd04 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Tue, 5 Mar 2024 11:55:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=88=E3=83=A9=E3=82=A4=E5=9B=9E?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E5=87=BA=E5=8A=9B=E3=82=92=E3=81=BE=E3=81=A8?= =?UTF-8?q?=E3=82=81=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler.go | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/handler.go b/handler.go index e2bd6d0..e7fe51e 100644 --- a/handler.go +++ b/handler.go @@ -133,6 +133,7 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte zlog.Info(). Str("channel_id", h.SoraChannelID). Str("connection_id", h.SoraConnectionID). + Int("retry_count", retryCount). Msg("NEW-REQUEST") reader, err := serviceHandler.Handle(ctx, r) @@ -147,13 +148,6 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte if s.config.MaxRetry > retryCount { retryCount += 1 - zlog.Debug(). - Err(err). - Str("channel_id", h.SoraChannelID). - Str("connection_id", h.SoraConnectionID). - Int("retry_count", retryCount). - Send() - // 連続のリトライを避けるために少し待つ time.Sleep(time.Duration(s.config.RetryIntervalMs) * time.Millisecond) @@ -191,13 +185,6 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte // サーバから切断されたが再度接続できる可能性があるため、接続を試みる retryCount += 1 - zlog.Debug(). - Err(err). - Str("channel_id", h.SoraChannelID). - Str("connection_id", h.SoraConnectionID). - Int("retry_count", retryCount). - Send() - // TODO: 必要な場合は連続のリトライを避けるために少し待つ処理を追加する break