zulip/zerver/tornado
Mateusz Mandera 89394fc1eb middleware: Use request.user for logging when possible.
Instead of trying to set the _requestor_for_logs attribute in all the
relevant places, we try to use request.user when possible (that will be
when it's a UserProfile or RemoteZulipServer as of now). In other
places, we set _requestor_for_logs to avoid manually editing the
request.user attribute, as it should mostly be left for Django to manage
it.
In places where we remove the "request._requestor_for_logs = ..." line,
it is clearly implied by the previous code (or the current surrounding
code) that request.user is of the correct type.
2020-03-09 13:54:58 -07:00
..
__init__.py
application.py dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
autoreload.py tornado: Fix bugs in Tornado autoreload library. 2019-08-02 12:47:49 -07:00
descriptors.py typing: Use TYPE_CHECKING when dealing with cyclic dependencies. 2019-07-31 12:19:39 -07:00
event_queue.py events: Add block for compatibility with old delete_message events. 2020-03-03 15:52:42 -08:00
exceptions.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
handlers.py middleware: Use request.user for logging when possible. 2020-03-09 13:54:58 -07:00
ioloop_logging.py mypy: Fix missing type annotation in tornado code. 2018-11-20 19:08:14 -08:00
sharding.py dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
views.py middleware: Log user.id/realm.string_id instead of _email. 2020-03-09 13:54:58 -07:00