diff --git a/gracedb/views.py b/gracedb/views.py index 291123e7f05320d3234264fc5f8c8ed0a7d3b6ae..0d259eb4344f7bc0c5f8c11abd92666f8f0e6033 100644 --- a/gracedb/views.py +++ b/gracedb/views.py @@ -314,11 +314,10 @@ def _createLog(request, graceid, comment, uploadedFile=None): try: logEntry.save() - if request.POST.get('alert') == "True": - description = "LOG: " - if uploadedFile: - description = "UPLOAD: '%s' " % uploadedFile.name - issueAlertForUpdate(event, description+comment, doxmpp=True, filename=uploadedFile.name) + description = "LOG: " + if uploadedFile: + description = "UPLOAD: '%s' " % uploadedFile.name + issueAlertForUpdate(event, description+comment, doxmpp=True, filename=uploadedFile.name) except Exception, e: rdict['error'] = "Failed to save log message: %s" % str(e)