@@ -163,7 +163,6 @@ class LiveSession {
163163 }
164164 },
165165 onDone: () {
166- log ('live_session: WebSocket stream done.' );
167166 if (! _messageController.isClosed) {
168167 _messageController.close ();
169168 }
@@ -181,7 +180,6 @@ class LiveSession {
181180 /// such as the handle to the previous session state to restore.
182181 Future <void > resumeSession (
183182 {SessionResumptionConfig ? sessionResumption}) async {
184- log ('live_session.resumeSession: Attempting to resume with handle ${sessionResumption ?.handle }' );
185183 try {
186184 await _wsSubscription.cancel ().timeout (const Duration (seconds: 2 ),
187185 onTimeout: () {
@@ -190,7 +188,6 @@ class LiveSession {
190188 await _ws.sink.close ().timeout (const Duration (seconds: 2 ), onTimeout: () {
191189 log ('live_session.resumeSession: WebSocket close timed out.' );
192190 });
193- log ('live_session.resumeSession: WebSocket cancel and close done.' );
194191
195192 _ws = await _performWebSocketSetup (
196193 uri: _uri,
@@ -201,7 +198,6 @@ class LiveSession {
201198 sessionResumption: sessionResumption,
202199 liveGenerationConfig: _liveGenerationConfig,
203200 );
204- log ('live_session.resumeSession: WebSocket setup success' );
205201 } catch (e) {
206202 log ('live_session.resumeSession: WebSocket setup failed: $e ' );
207203 rethrow ;
@@ -269,7 +265,6 @@ class LiveSession {
269265 /// [text] : The text data to send.
270266 Future <void > sendTextRealtime (String text) async {
271267 _checkWsStatus ();
272- log ('sendTextRealtime: $text ' );
273268 var clientMessage = LiveClientRealtimeInput .text (text);
274269 var clientJson = jsonEncode (clientMessage.toJson ());
275270 _ws.sink.add (clientJson);
@@ -334,7 +329,6 @@ class LiveSession {
334329
335330 /// Closes the WebSocket connection.
336331 Future <void > close () async {
337- log ('live_session.close: closing session' );
338332 try {
339333 await _wsSubscription.cancel ().timeout (const Duration (seconds: 1 ),
340334 onTimeout: () {
@@ -349,7 +343,6 @@ class LiveSession {
349343 } catch (e) {
350344 log ('live_session.close: error during close: $e ' );
351345 }
352- log ('live_session.close: completed' );
353346 }
354347
355348 void _checkWsStatus () {
0 commit comments