]> source.dussan.org Git - gitblit.git/commitdiff
Display the selected SSH backend in the daemon startup message
authorJames Moger <james.moger@gitblit.com>
Fri, 14 Mar 2014 16:53:56 +0000 (12:53 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 22:58:08 +0000 (18:58 -0400)
src/main/java/com/gitblit/transport/ssh/SshDaemon.java

index 4a2239b8c98a563a9033569e3f5da41574c2ed9c..f6c4e0ebe1bc921b9cfdd3b06402bdfeb9080866 100644 (file)
@@ -24,11 +24,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
 import javax.inject.Singleton;
 
 import org.apache.sshd.SshServer;
-import org.apache.sshd.common.io.IoServiceFactory;
 import org.apache.sshd.common.io.IoServiceFactoryFactory;
-import org.apache.sshd.common.io.mina.MinaServiceFactory;
 import org.apache.sshd.common.io.mina.MinaServiceFactoryFactory;
-import org.apache.sshd.common.io.nio2.Nio2ServiceFactory;
 import org.apache.sshd.common.io.nio2.Nio2ServiceFactoryFactory;
 import org.apache.sshd.server.keyprovider.PEMGeneratorHostKeyProvider;
 import org.eclipse.jgit.internal.JGitText;
@@ -187,9 +184,12 @@ public class SshDaemon {
                sshd.start();
                run.set(true);
 
+               String sshBackendStr = gitblit.getSettings().getString(Keys.git.sshBackend,
+                               SshSessionBackend.NIO2.name());
+
                log.info(MessageFormat.format(
-                               "SSH Daemon is listening on {0}:{1,number,0}",
-                               sshd.getHost(), sshd.getPort()));
+                               "SSH Daemon ({0}) is listening on {1}:{2,number,0}",
+                               sshBackendStr, sshd.getHost(), sshd.getPort()));
        }
 
        /** @return true if this daemon is receiving connections. */