Log the involved user id in sync failures
This commit is contained in:
parent
6aa1be59d4
commit
992719554f
|
@ -274,7 +274,11 @@ class MatrixClient(nio.AsyncClient):
|
||||||
trace = traceback.format_exc().rstrip()
|
trace = traceback.format_exc().rstrip()
|
||||||
|
|
||||||
if isinstance(err, MatrixError) and err.http_code >= 500:
|
if isinstance(err, MatrixError) and err.http_code >= 500:
|
||||||
log.warning("Server failure during sync:\n%s", trace)
|
log.warning(
|
||||||
|
"Server failure during sync for %s:\n%s",
|
||||||
|
self.user_id,
|
||||||
|
trace,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
LoopException(str(err), err, trace)
|
LoopException(str(err), err, trace)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user