Do not send duplicated emails on bugs.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-19 21:18:15 -03:00
parent 645402e691
commit c8d3d99224
2 changed files with 6 additions and 4 deletions

View File

@ -19,9 +19,11 @@ public class NotifierFilter {
final StringBuilder buff = new StringBuilder(); final StringBuilder buff = new StringBuilder();
for (String key : model.keySet()) { for (String key : model.keySet()) {
buff.append(key); if (!key.equals("mapXML")) {
buff.append("="); buff.append(key);
buff.append(model.get(key)); buff.append("=");
buff.append(model.get(key));
}
} }
final String digest = DigestUtils.md5DigestAsHex(buff.toString().getBytes()); final String digest = DigestUtils.md5DigestAsHex(buff.toString().getBytes());

View File

@ -102,7 +102,7 @@ public class AccountController extends BaseController {
@RequestMapping(method = RequestMethod.POST, value = "logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"}) @RequestMapping(method = RequestMethod.POST, value = "logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"})
@ResponseStatus(value = HttpStatus.NO_CONTENT) @ResponseStatus(value = HttpStatus.NO_CONTENT)
public void changePassword(@RequestBody RestLogItem item, @NotNull HttpServletRequest request) { public void logError(@RequestBody RestLogItem item, @NotNull HttpServletRequest request) {
final Mindmap mindmap = mindmapService.findMindmapById(item.getMapId()); final Mindmap mindmap = mindmapService.findMindmapById(item.getMapId());
final User user = Utils.getUser(); final User user = Utils.getUser();
logger.error("Unexpected editor error - " + item.getJsErrorMsg()); logger.error("Unexpected editor error - " + item.getJsErrorMsg());