From 2a690c54eebdcba39967db34caee2bc6dee640b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 7 Oct 2018 13:17:19 +0200 Subject: [PATCH] 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 --- com.woltlab.wcf/option.xml | 5 +++++ .../lib/system/database/Database.class.php | 17 ++++++++++++++++- wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 4 files changed, 25 insertions(+), 1 deletion(-) 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 +