]> source.dussan.org Git - gitblit.git/commitdiff
Added some flare to the console log
authorJames Moger <james.moger@gitblit.com>
Fri, 18 Nov 2011 22:39:37 +0000 (17:39 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 18 Nov 2011 22:39:37 +0000 (17:39 -0500)
src/com/gitblit/GitBlitServer.java

index 1b079de8c926f5ef7664b36970dd7a5fb68b6cb9..5de2265e55cf1a7d608dc426e536e90a98011180 100644 (file)
@@ -133,7 +133,20 @@ public class GitBlitServer {
 \r
                logger = LoggerFactory.getLogger(GitBlitServer.class);\r
                logger.info(Constants.BORDER);\r
-               logger.info(Constants.getGitBlitVersion());\r
+               logger.info("            _____  _  _    _      _  _  _");\r
+               logger.info("           |  __ \\(_)| |  | |    | |(_)| |");\r
+               logger.info("           | |  \\/ _ | |_ | |__  | | _ | |_");\r
+               logger.info("           | | __ | || __|| '_ \\ | || || __|");\r
+               logger.info("           | |_\\ \\| || |_ | |_) || || || |_");\r
+               logger.info("            \\____/|_| \\__||_.__/ |_||_| \\__|");\r
+               int spacing = (Constants.BORDER.length() - Constants.getGitBlitVersion().length()) / 2;\r
+               StringBuilder sb = new StringBuilder();\r
+               while (spacing > 0) {\r
+                       spacing--;\r
+                       sb.append(' ');\r
+               }\r
+               logger.info(sb.toString() + Constants.getGitBlitVersion());\r
+               logger.info("");\r
                logger.info(Constants.BORDER);\r
 \r
                String osname = System.getProperty("os.name");\r
@@ -170,8 +183,9 @@ public class GitBlitServer {
                                                params.useNIO, params.securePort);\r
                                String bindInterface = settings.getString(Keys.server.httpsBindInterface, null);\r
                                if (!StringUtils.isEmpty(bindInterface)) {\r
-                                       logger.warn(MessageFormat.format("Binding ssl connector on port {0,number,0} to {1}",\r
-                                                       params.securePort, bindInterface));\r
+                                       logger.warn(MessageFormat.format(\r
+                                                       "Binding ssl connector on port {0,number,0} to {1}", params.securePort,\r
+                                                       bindInterface));\r
                                        secureConnector.setHost(bindInterface);\r
                                }\r
                                if (params.securePort < 1024 && !isWindows()) {\r
@@ -328,7 +342,7 @@ public class GitBlitServer {
                if (allowRenegotiation) {\r
                        logger.info("   allowing SSL renegotiation on Java " + v);\r
                        connector.setAllowRenegotiate(allowRenegotiation);\r
-               }               \r
+               }\r
                connector.setKeystore(keystore.getAbsolutePath());\r
                connector.setPassword(password);\r
                connector.setPort(port);\r