remove info level logging message and use debug instead (#132)
This commit is contained in:
parent
f3b9ba4a59
commit
9ad382d397
3 changed files with 23 additions and 23 deletions
|
|
@ -152,7 +152,7 @@ public actor HTTPClientTransport: Transport {
|
|||
streamingTask = Task { await startListeningForServerEvents() }
|
||||
}
|
||||
|
||||
logger.info("HTTP transport connected")
|
||||
logger.debug("HTTP transport connected")
|
||||
}
|
||||
|
||||
/// Disconnects from the transport
|
||||
|
|
@ -180,7 +180,7 @@ public actor HTTPClientTransport: Transport {
|
|||
initialSessionIDContinuation?.resume()
|
||||
initialSessionIDContinuation = nil
|
||||
|
||||
logger.info("HTTP clienttransport disconnected")
|
||||
logger.debug("HTTP clienttransport disconnected")
|
||||
}
|
||||
|
||||
/// Sends data through an HTTP POST request
|
||||
|
|
@ -440,7 +440,7 @@ public actor HTTPClientTransport: Transport {
|
|||
"Initial sessionID already available. Proceeding with SSE streaming task immediately."
|
||||
)
|
||||
} else {
|
||||
logger.info(
|
||||
logger.trace(
|
||||
"Proceeding with SSE connection attempt; sessionID is nil. This might be expected for stateless servers or if initialize hasn't provided one yet."
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ import Logging
|
|||
|
||||
// Reset reconnect attempt counter on successful connection
|
||||
reconnectAttempt = 0
|
||||
logger.info("Network transport connected successfully")
|
||||
logger.debug("Network transport connected successfully")
|
||||
continuation.resume()
|
||||
|
||||
// Start the receive loop after connection is established
|
||||
|
|
@ -498,7 +498,7 @@ import Logging
|
|||
{
|
||||
// Try to reconnect with exponential backoff
|
||||
reconnectAttempt += 1
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"Attempting reconnection after \(context) (\(reconnectAttempt)/\(reconnectionConfig.maxAttempts))..."
|
||||
)
|
||||
|
||||
|
|
@ -541,7 +541,7 @@ import Logging
|
|||
|
||||
connection.cancel()
|
||||
messageContinuation.finish()
|
||||
logger.info("Network transport disconnected")
|
||||
logger.debug("Network transport disconnected")
|
||||
}
|
||||
|
||||
/// Sends data through the network connection
|
||||
|
|
@ -658,7 +658,7 @@ import Logging
|
|||
|
||||
// Check connection state
|
||||
if connection.state != .ready {
|
||||
logger.info("Connection no longer ready, exiting receive loop")
|
||||
logger.warning("Connection no longer ready, exiting receive loop")
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
@ -708,7 +708,7 @@ import Logging
|
|||
&& reconnectAttempt < reconnectionConfig.maxAttempts
|
||||
{
|
||||
reconnectAttempt += 1
|
||||
logger.info(
|
||||
logger.warning(
|
||||
"Network connection lost, attempting reconnection (\(reconnectAttempt)/\(reconnectionConfig.maxAttempts))..."
|
||||
)
|
||||
|
||||
|
|
@ -759,7 +759,7 @@ import Logging
|
|||
{
|
||||
// Similar reconnection logic for other errors
|
||||
reconnectAttempt += 1
|
||||
logger.info(
|
||||
logger.warning(
|
||||
"Error during receive, attempting reconnection (\(reconnectAttempt)/\(reconnectionConfig.maxAttempts))..."
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ import struct Foundation.Data
|
|||
try setNonBlocking(fileDescriptor: output)
|
||||
|
||||
isConnected = true
|
||||
logger.info("Transport connected successfully")
|
||||
logger.debug("Transport connected successfully")
|
||||
|
||||
// Start reading loop in background
|
||||
Task {
|
||||
|
|
@ -181,7 +181,7 @@ import struct Foundation.Data
|
|||
guard isConnected else { return }
|
||||
isConnected = false
|
||||
messageContinuation.finish()
|
||||
logger.info("Transport disconnected")
|
||||
logger.debug("Transport disconnected")
|
||||
}
|
||||
|
||||
/// Sends a message over the transport.
|
||||
|
|
|
|||
Loading…
Reference in a new issue