mirror of https://github.com/zulip/zulip.git
slow_queries: Log slow queries even if not reported via Zulip.
This should help make these logs more useful for debugging on an arbitary Zulip system.
This commit is contained in:
parent
ec61a070b4
commit
84926ff321
|
@ -315,6 +315,9 @@ class SlowQueryWorker(QueueProcessingWorker):
|
|||
# type: () -> None
|
||||
slow_queries = self.q.drain_queue("slow_queries", json=True)
|
||||
|
||||
for query in slow_queries:
|
||||
logging.info("Slow query: %s" % (query))
|
||||
|
||||
if settings.ERROR_BOT is None:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue