@@ -131,7 +131,7 @@ public actor HTTPClientTransport: Transport {
131131 if let continuation = self . initialSessionIDContinuation {
132132 continuation. resume ( )
133133 self . initialSessionIDContinuation = nil // Consume the continuation
134- logger. debug ( " Initial session ID signal triggered for SSE task. " )
134+ logger. trace ( " Initial session ID signal triggered for SSE task. " )
135135 }
136136 }
137137
@@ -251,7 +251,7 @@ public actor HTTPClientTransport: Transport {
251251 logger. warning ( " SSE responses aren't fully supported on Linux " )
252252 messageContinuation. yield ( data)
253253 } else if contentType. contains ( " application/json " ) {
254- logger. debug ( " Received JSON response " , metadata: [ " size " : " \( data. count) " ] )
254+ logger. trace ( " Received JSON response " , metadata: [ " size " : " \( data. count) " ] )
255255 messageContinuation. yield ( data)
256256 } else {
257257 logger. warning ( " Unexpected content type: \( contentType) " )
@@ -285,15 +285,15 @@ public actor HTTPClientTransport: Transport {
285285
286286 if contentType. contains ( " text/event-stream " ) {
287287 // For SSE, processing happens via the stream
288- logger. debug ( " Received SSE response, processing in streaming task " )
288+ logger. trace ( " Received SSE response, processing in streaming task " )
289289 try await self . processSSE ( stream)
290290 } else if contentType. contains ( " application/json " ) {
291291 // For JSON responses, collect and deliver the data
292292 var buffer = Data ( )
293293 for try await byte in stream {
294294 buffer. append ( byte)
295295 }
296- logger. debug ( " Received JSON response " , metadata: [ " size " : " \( buffer. count) " ] )
296+ logger. trace ( " Received JSON response " , metadata: [ " size " : " \( buffer. count) " ] )
297297 messageContinuation. yield ( buffer)
298298 } else {
299299 logger. warning ( " Unexpected content type: \( contentType) " )
@@ -390,7 +390,7 @@ public actor HTTPClientTransport: Transport {
390390
391391 // Wait for the initial session ID signal, but only if sessionID isn't already set
392392 if self . sessionID == nil , let signalTask = self . initialSessionIDSignalTask {
393- logger. debug ( " SSE streaming task waiting for initial sessionID signal... " )
393+ logger. trace ( " SSE streaming task waiting for initial sessionID signal... " )
394394
395395 // Race the signalTask against a timeout
396396 let timeoutTask = Task {
@@ -429,16 +429,16 @@ public actor HTTPClientTransport: Transport {
429429 timeoutTask. cancel ( )
430430
431431 if signalReceived {
432- logger. debug ( " SSE streaming task proceeding after initial sessionID signal. " )
432+ logger. trace ( " SSE streaming task proceeding after initial sessionID signal. " )
433433 } else {
434434 logger. warning (
435435 " Timeout waiting for initial sessionID signal. SSE stream will proceed (sessionID might be nil). "
436436 )
437437 }
438438 } else if self. sessionID != nil {
439- logger. debug (
440- " Initial sessionID already available. Proceeding with SSE streaming task immediately. "
441- )
439+ logger. trace (
440+ " Initial sessionID already available. Proceeding with SSE streaming task immediately. "
441+ )
442442 } else {
443443 logger. info (
444444 " Proceeding with SSE connection attempt; sessionID is nil. This might be expected for stateless servers or if initialize hasn't provided one yet. "
@@ -525,7 +525,7 @@ public actor HTTPClientTransport: Transport {
525525 // Check if task has been cancelled
526526 if Task . isCancelled { break }
527527
528- logger. debug (
528+ logger. trace (
529529 " SSE event received " ,
530530 metadata: [
531531 " type " : " \( event. event ?? " message " ) " ,
0 commit comments