Append REQUEST_URI to database queries (#2729)
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 7 Oct 2018 11:17:19 +0000 (13:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 7 Oct 2018 11:17:19 +0000 (13:17 +0200)
commit2a690c54eebdcba39967db34caee2bc6dee640b5
treeecb04d42cb6f8ef013ea233027cb9d512ff1576e
parent7ecb5d1ccf2c6a5389b39c32cf4391b0ed721b31
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
wcfsetup/install/files/lib/system/database/Database.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml