Log server sync errors as warnings instead

This commit is contained in:
miruka 2020-03-15 17:35:07 -04:00
parent faaa5933d4
commit cada86a05f

View File

@ -274,7 +274,7 @@ 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.error("Server failure during sync:\n%s", trace) log.warning("Server failure during sync:\n%s", trace)
else: else:
LoopException(str(err), err, trace) LoopException(str(err), err, trace)