Don't log tabbott/extra test messages.

(imported from commit 8e1adecca14e5440298fd93b41e1a43da37c807f)
This commit is contained in:
Tim Abbott 2012-10-23 11:06:22 -04:00
parent 6f4b0de057
commit 386b48e80f
1 changed files with 2 additions and 1 deletions

View File

@ -418,7 +418,8 @@ def log_event(event):
fcntl.flock(lock, fcntl.LOCK_UN)
def log_message(message):
log_event(message.to_log_dict())
if not message.sending_client.name.startswith("test:"):
log_event(message.to_log_dict())
def do_send_message(message, no_log=False):
message.save()