From: James Moger Date: Fri, 18 Nov 2011 22:39:37 +0000 (-0500) Subject: Added some flare to the console log X-Git-Tag: v0.8.0~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a02f843771aaccea2cb497fdc40ae8ca384d498;p=gitblit.git Added some flare to the console log --- diff --git a/src/com/gitblit/GitBlitServer.java b/src/com/gitblit/GitBlitServer.java index 1b079de8..5de2265e 100644 --- a/src/com/gitblit/GitBlitServer.java +++ b/src/com/gitblit/GitBlitServer.java @@ -133,7 +133,20 @@ public class GitBlitServer { logger = LoggerFactory.getLogger(GitBlitServer.class); logger.info(Constants.BORDER); - logger.info(Constants.getGitBlitVersion()); + logger.info(" _____ _ _ _ _ _ _"); + logger.info(" | __ \\(_)| | | | | |(_)| |"); + logger.info(" | | \\/ _ | |_ | |__ | | _ | |_"); + logger.info(" | | __ | || __|| '_ \\ | || || __|"); + logger.info(" | |_\\ \\| || |_ | |_) || || || |_"); + logger.info(" \\____/|_| \\__||_.__/ |_||_| \\__|"); + int spacing = (Constants.BORDER.length() - Constants.getGitBlitVersion().length()) / 2; + StringBuilder sb = new StringBuilder(); + while (spacing > 0) { + spacing--; + sb.append(' '); + } + logger.info(sb.toString() + Constants.getGitBlitVersion()); + logger.info(""); logger.info(Constants.BORDER); String osname = System.getProperty("os.name"); @@ -170,8 +183,9 @@ public class GitBlitServer { params.useNIO, params.securePort); String bindInterface = settings.getString(Keys.server.httpsBindInterface, null); if (!StringUtils.isEmpty(bindInterface)) { - logger.warn(MessageFormat.format("Binding ssl connector on port {0,number,0} to {1}", - params.securePort, bindInterface)); + logger.warn(MessageFormat.format( + "Binding ssl connector on port {0,number,0} to {1}", params.securePort, + bindInterface)); secureConnector.setHost(bindInterface); } if (params.securePort < 1024 && !isWindows()) { @@ -328,7 +342,7 @@ public class GitBlitServer { if (allowRenegotiation) { logger.info(" allowing SSL renegotiation on Java " + v); connector.setAllowRenegotiate(allowRenegotiation); - } + } connector.setKeystore(keystore.getAbsolutePath()); connector.setPassword(password); connector.setPort(port);