summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-10 10:28:24 +0000
committerErik Johnston <erik@matrix.org>2015-03-10 10:28:29 +0000
commitabaf47bbb6b9be0b493d07ca8a9efe4cdf0aee01 (patch)
tree4f1fc1a254b201a185842c911aba2c19aedd2c29 /synapse
parentin_thread takes no arguments (diff)
downloadsynapse-abaf47bbb6b9be0b493d07ca8a9efe4cdf0aee01.tar.xz
Fix bug in logging.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/transaction_queue.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index e6eb85501a..9dc7849b17 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -115,8 +115,8 @@ class TransactionQueue(object):
                 if not deferred.called:
                     deferred.errback(failure)
 
-            def log_failure(failure):
-                logger.warn("Failed to send pdu", failure.value)
+            def log_failure(f):
+                logger.warn("Failed to send pdu to %s: %s", destination, f.value)
 
             deferred.addErrback(log_failure)
 
@@ -143,8 +143,8 @@ class TransactionQueue(object):
             if not deferred.called:
                 deferred.errback(failure)
 
-        def log_failure(failure):
-            logger.warn("Failed to send pdu: %s", failure.value)
+        def log_failure(f):
+            logger.warn("Failed to send edu to %s: %s", destination, f.value)
 
         deferred.addErrback(log_failure)
 
@@ -174,7 +174,7 @@ class TransactionQueue(object):
                 deferred.errback(f)
 
         def log_failure(f):
-            logger.warn("Failed to send pdu", f.value)
+            logger.warn("Failed to send failure to %s: %s", destination, f.value)
 
         deferred.addErrback(log_failure)