Skip to content

Commit

Permalink
tests: Eliminate 'Sending invitation' output spam in test_signup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerkid authored and utkarsh23 committed Dec 22, 2017
1 parent 8212ada commit d74c075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zerver/worker/queue_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import re
import importlib

logger = logging.getLogger(__name__)

class WorkerDeclarationException(Exception):
pass
Expand Down Expand Up @@ -232,7 +233,7 @@ def consume(self, data):
return

referrer = get_user_profile_by_id(data["referrer_id"])
logging.info("Sending invitation for realm %s to %s" % (referrer.realm.string_id, invitee.email))
logger.info("Sending invitation for realm %s to %s" % (referrer.realm.string_id, invitee.email))
do_send_confirmation_email(invitee, referrer)

# queue invitation reminder for two days from now.
Expand Down
1 change: 1 addition & 0 deletions zproject/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def set_loglevel(logger_name, level) -> None:
set_loglevel('zulip.send_email', 'ERROR')
set_loglevel('zerver.lib.digest', 'ERROR')
set_loglevel('zerver.lib.email_mirror', 'ERROR')
set_loglevel('zerver.worker.queue_processors', 'WARNING')

# Enable file:/// hyperlink support by default in tests
ENABLE_FILE_LINKS = True
Expand Down

0 comments on commit d74c075

Please sign in to comment.