From 386b48e80f7515d13fda2aff4429552c202063a0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 23 Oct 2012 11:06:22 -0400 Subject: [PATCH] Don't log tabbott/extra test messages. (imported from commit 8e1adecca14e5440298fd93b41e1a43da37c807f) --- zephyr/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zephyr/models.py b/zephyr/models.py index 5b2c8e685c..a98b9e0daf 100644 --- a/zephyr/models.py +++ b/zephyr/models.py @@ -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()