text = MessageFormat.format(msg, objects);\r
super.sendMessage(prefix + text);\r
}\r
- LOGGER.info(text + " (" + user.username + ")");\r
+ if (!StringUtils.isEmpty(msg)) {\r
+ LOGGER.info(text + " (" + user.username + ")");\r
+ }\r
}\r
\r
protected void sendError(String msg, Object... objects) {\r
text = MessageFormat.format(msg, objects);\r
super.sendError(text);\r
}\r
- LOGGER.error(text + " (" + user.username + ")");\r
+ if (!StringUtils.isEmpty(msg)) {\r
+ LOGGER.error(text + " (" + user.username + ")");\r
+ }\r
}\r
\r
/**\r