Skip to content

Commit

Permalink
Log change in connectivity status at INFO. (#1914)
Browse files Browse the repository at this point in the history
log: Log change in connectivity status at INFO.
  • Loading branch information
bgrozev authored Jun 28, 2022
1 parent bdb3a06 commit 20f6f30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ class EndpointConnectionStatusMonitor @JvmOverloads constructor(
synchronized(inactiveEndpointIds) {
val wasActive = !inactiveEndpointIds.contains(endpoint.id)
if (wasActive && !active) {
logger.cdebug { "${endpoint.id} is considered disconnected. No activity for $noActivityTime" }
logger.info { "${endpoint.id} is considered disconnected. No activity for $noActivityTime" }
inactiveEndpointIds += endpoint.id
changed = true
} else if (!wasActive && active) {
logger.cdebug { "${endpoint.id} has reconnected" }
logger.info { "${endpoint.id} has reconnected" }
inactiveEndpointIds -= endpoint.id
changed = true
}
Expand Down

0 comments on commit 20f6f30

Please sign in to comment.