James Moger
2014-02-28 da99418dc677061610a1ccef5b2207d065600da8
Do not log empty messages in the receive pack
1 files modified
4 ■■■■ changed files
src/main/java/com/gitblit/git/GitblitReceivePack.java 4 ●●●● 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);
        }
        if (!StringUtils.isEmpty(msg)) {
        LOGGER.info(text + " (" + user.username + ")");
        }
    }
    protected void sendError(String msg, Object... objects) {
@@ -428,8 +430,10 @@
            text = MessageFormat.format(msg, objects);
            super.sendError(text);
        }
        if (!StringUtils.isEmpty(msg)) {
        LOGGER.error(text + " (" + user.username + ")");
    }
    }
    /**
     * Runs the specified Groovy hook scripts.