mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add SQL_DEBUG variable and database logging
add a hook to db_query to log all sql queries when SQL_DEBUG is set Additionally, provide better logging for sql error situations (provide backtrace as well as error message). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
10ea5f5ff6
commit
c43558ba60
2 changed files with 16 additions and 0 deletions
|
@ -20,6 +20,10 @@ define( "PASSWD_MAX_LEN", 128 );
|
|||
# Default language for displayed messages in the web interface.
|
||||
define("DEFAULT_LANG", "en");
|
||||
|
||||
# Enable debug sql output. This sends each query to error_log. Useful for
|
||||
# development. Should not be enabled in production. Default to 0 (off).
|
||||
define("SQL_DEBUG", 0);
|
||||
|
||||
# Languages we have translations for
|
||||
$SUPPORTED_LANGS = array(
|
||||
"ca" => "Català",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue