mirror of
https://github.com/zulip/zulip.git
synced 2025-11-23 16:01:24 +00:00
[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:
@@ -65,7 +65,7 @@ class AdminHumbugHandler(logging.Handler):
|
||||
subject, stack_trace, user_info = format_record(record)
|
||||
|
||||
try:
|
||||
internal_send_message("humbug+errors@humbughq.com",
|
||||
internal_send_message("error-bot@zulip.com",
|
||||
"stream", "errors", self.format_subject(subject),
|
||||
"Error generated by %s\n\n~~~~ pytb\n%s\n\n~~~~\n%s" % (
|
||||
user_info, stack_trace, request_repr))
|
||||
|
||||
@@ -688,7 +688,7 @@ def do_convert(md, realm_domain=None, message=None):
|
||||
logging.getLogger('').error('Exception in Markdown parser: %sInput (sanitized) was: %s'
|
||||
% (traceback.format_exc(), cleaned))
|
||||
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.")
|
||||
mail.mail_admins(subject, "Failed message: %s\n\n%s\n\n" % (
|
||||
cleaned, traceback.format_exc()),
|
||||
|
||||
@@ -106,7 +106,7 @@ def highlight_html_differences(s1, s2):
|
||||
logging.getLogger('').error('HTML diff produced mal-formed HTML')
|
||||
|
||||
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")
|
||||
return s2
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ class Command(BaseCommand):
|
||||
# are needed for the test suite.
|
||||
hardcoded_humbug_users_nosubs = [
|
||||
("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 Tutorial Bot", "tutorial-bot@zulip.com"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user