diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-11-20 17:10:37 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-11-20 17:10:37 +0000 |
commit | dfdda2c8718b11bff9eb69d382eff72c9f8a3d79 (patch) | |
tree | 23b5cb61864bcffc5a0fd371758bf97febcd0367 /synapse/storage/_base.py | |
parent | Add a few missing yields, Move deferred lists inside PreserveLoggingContext b... (diff) | |
download | synapse-dfdda2c8718b11bff9eb69d382eff72c9f8a3d79.tar.xz |
Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 2c04a1c5be..236cfebf64 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -57,7 +57,7 @@ class LoggingTransaction(object): if args and args[0]: values = args[0] sql_logger.debug( - "[SQL values] {%s} " + ", ".join(("<%s>",) * len(values)), + "[SQL values] {%s} " + ", ".join(("<%r>",) * len(values)), self.name, *values ) |