[manual] Rename error bot to zulip.com domain.

Just before this is pushed to prod, we need to rename the Humbug error
bot in the database using:

./manage.py change_user_email humbug+errors@humbughq.com error-bot@zulip.com
/etc/init.d/memcached restart

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), error reporting to humbug will not work on
staging.

(imported from commit 93044bb01797c981067f359676826d4a5791e235)
This commit is contained in:
Tim Abbott
2013-07-24 14:23:35 -04:00
parent c7d57e6e4a
commit b17741a5c4
4 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class AdminHumbugHandler(logging.Handler):
subject, stack_trace, user_info = format_record(record) subject, stack_trace, user_info = format_record(record)
try: try:
internal_send_message("humbug+errors@humbughq.com", internal_send_message("error-bot@zulip.com",
"stream", "errors", self.format_subject(subject), "stream", "errors", self.format_subject(subject),
"Error generated by %s\n\n~~~~ pytb\n%s\n\n~~~~\n%s" % ( "Error generated by %s\n\n~~~~ pytb\n%s\n\n~~~~\n%s" % (
user_info, stack_trace, request_repr)) user_info, stack_trace, request_repr))

View File

@@ -688,7 +688,7 @@ def do_convert(md, realm_domain=None, message=None):
logging.getLogger('').error('Exception in Markdown parser: %sInput (sanitized) was: %s' logging.getLogger('').error('Exception in Markdown parser: %sInput (sanitized) was: %s'
% (traceback.format_exc(), cleaned)) % (traceback.format_exc(), cleaned))
subject = "Markdown parser failure on %s" % (platform.node(),) subject = "Markdown parser failure on %s" % (platform.node(),)
internal_send_message("humbug+errors@humbughq.com", "stream", internal_send_message("error-bot@zulip.com", "stream",
"errors", subject, "Markdown parser failed, email sent with details.") "errors", subject, "Markdown parser failed, email sent with details.")
mail.mail_admins(subject, "Failed message: %s\n\n%s\n\n" % ( mail.mail_admins(subject, "Failed message: %s\n\n%s\n\n" % (
cleaned, traceback.format_exc()), cleaned, traceback.format_exc()),

View File

@@ -106,7 +106,7 @@ def highlight_html_differences(s1, s2):
logging.getLogger('').error('HTML diff produced mal-formed HTML') logging.getLogger('').error('HTML diff produced mal-formed HTML')
subject = "HTML diff failure on %s" % (platform.node(),) subject = "HTML diff failure on %s" % (platform.node(),)
internal_send_message("humbug+errors@humbughq.com", "stream", internal_send_message("error-bot@zulip.com", "stream",
"errors", subject, "HTML diff produced malformed HTML") "errors", subject, "HTML diff produced malformed HTML")
return s2 return s2

View File

@@ -194,7 +194,7 @@ class Command(BaseCommand):
# are needed for the test suite. # are needed for the test suite.
hardcoded_humbug_users_nosubs = [ hardcoded_humbug_users_nosubs = [
("Zulip New User Bot", "humbug+signups@humbughq.com"), ("Zulip New User Bot", "humbug+signups@humbughq.com"),
("Zulip Error Bot", "humbug+errors@humbughq.com"), ("Zulip Error Bot", "error-bot@zulip.com"),
("Zulip Notification Bot", "humbug+notifications@humbughq.com"), ("Zulip Notification Bot", "humbug+notifications@humbughq.com"),
("Zulip Tutorial Bot", "tutorial-bot@zulip.com"), ("Zulip Tutorial Bot", "tutorial-bot@zulip.com"),
] ]