From: Tim Düsterhus Date: Sun, 7 Oct 2018 11:17:19 +0000 (+0200) Subject: Append REQUEST_URI to database queries (#2729) X-Git-Tag: 5.2.0_Alpha_1~364^2~15^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a690c54eebdcba39967db34caee2bc6dee640b5;p=GitHub%2FWoltLab%2FWCF.git Append REQUEST_URI to database queries (#2729) * Append REQUEST_URI to database queries This might come in handy to debug long running queries in production. Idea stolen from: https://chris-lamb.co.uk/projects/django-append-url-to-sql * Add ENABLE_PRODUCTION_DEBUG_MODE option * Save a substr() if ENABLE_PRODUCTION_DEBUG_MODE is off --- diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 0e4f78b18c..00c6364239 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -411,6 +411,11 @@ boolean 0 +