You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2019/04/06 18:44:29 UTC

[airavata] branch staging updated: Minor logging improvements

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/staging by this push:
     new 60d1e45  Minor logging improvements
60d1e45 is described below

commit 60d1e453c8cd2804840608394183bec212ac4f53
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Sat Apr 6 14:44:21 2019 -0400

    Minor logging improvements
---
 .../main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
index 244536e..6c42953 100644
--- a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
+++ b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/PoolingSSHJClient.java
@@ -202,7 +202,7 @@ public class PoolingSSHJClient extends SSHClient {
     private void removeStaleConnections() {
         List<Map.Entry<SSHClient, SSHClientInfo>> entriesTobeRemoved;
         lock.writeLock().lock();
-        logger.info("Removing stale connections for host {}", host);
+        logger.info("Current active connections for  {} @ {} : {} are {}", username, host, port, clientInfoMap.size());
         try {
             entriesTobeRemoved = clientInfoMap.entrySet().stream().filter(entry ->
                     ((entry.getValue().getSessionCount() == 0) &&