mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
Log requestor email address for non-error requests too.
This should make it much easier to debug issues where a particular user is hosing our API, for example. (imported from commit cbea49fd1e11805cadf564bd9160d3d6bf7e0eca)
This commit is contained in:
@@ -144,6 +144,7 @@ def internal_notify_view(view_func):
|
||||
# This is not a security check; it's an internal assertion
|
||||
# to help us find bugs.
|
||||
raise RuntimeError, 'notify view called with no Tornado handler'
|
||||
request._email = "internal"
|
||||
return view_func(request, *args, **kwargs)
|
||||
return _wrapped_view_func
|
||||
|
||||
|
||||
Reference in New Issue
Block a user