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();
for (String key : model.keySet()) {
buff.append(key);
buff.append("=");
buff.append(model.get(key));
if (!key.equals("mapXML")) {
buff.append(key);
buff.append("=");
buff.append(model.get(key));
}
}
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"})
@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 User user = Utils.getUser();
logger.error("Unexpected editor error - " + item.getJsErrorMsg());