logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting.

Running notify_server_error directly from the logging handler can lead
to database queries running in a random context.  Among the many
potential problems that could cause, one actual problem is a
SynchronousOnlyOperation exception when running in an asyncio event
loop.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-07-06 17:04:24 -07:00
committed by Tim Abbott
parent 58d9975cca
commit 07fef56c74
5 changed files with 23 additions and 52 deletions

View File

@@ -79,7 +79,6 @@ INVITES_MIN_USER_AGE_DAYS = 0
EMBEDDED_BOTS_ENABLED = True
SAVE_FRONTEND_STACKTRACES = True
STAGING_ERROR_NOTIFICATIONS = True
SYSTEM_ONLY_REALMS: Set[str] = set()
USING_PGROONGA = True