James Moger
2014-02-28 da99418dc677061610a1ccef5b2207d065600da8
Do not log empty messages in the receive pack
1 files modified
8 ■■■■ changed files
src/main/java/com/gitblit/git/GitblitReceivePack.java 8 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/git/GitblitReceivePack.java
@@ -416,7 +416,9 @@
            text = MessageFormat.format(msg, objects);
            super.sendMessage(prefix + text);
        }
        LOGGER.info(text + " (" + user.username + ")");
        if (!StringUtils.isEmpty(msg)) {
            LOGGER.info(text + " (" + user.username + ")");
        }
    }
    protected void sendError(String msg, Object... objects) {
@@ -428,7 +430,9 @@
            text = MessageFormat.format(msg, objects);
            super.sendError(text);
        }
        LOGGER.error(text + " (" + user.username + ")");
        if (!StringUtils.isEmpty(msg)) {
            LOGGER.error(text + " (" + user.username + ")");
        }
    }
    /**