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/http | |
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/http')
-rw-r--r-- | synapse/http/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index ed1f1170cb..03f7768761 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -138,7 +138,7 @@ class JsonResource(HttpServer, resource.Resource): ) except CodeMessageException as e: if isinstance(e, SynapseError): - logger.error("%s SynapseError: %s - %s", request, e.code, + logger.info("%s SynapseError: %s - %s", request, e.code, e.msg) else: logger.exception(e) |