mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Make sql log file name configurable (#130)
This commit is contained in:
parent
33c69a5981
commit
cc1e2e8d8a
@ -377,15 +377,16 @@ $bb_cfg['abuse_email'] = "abuse@$domain_name";
|
||||
$bb_cfg['adv_email'] = "adv@$domain_name";
|
||||
|
||||
// Debug
|
||||
define('DBG_LOG', false); // enable forum debug (off on production)
|
||||
define('DBG_TRACKER', false); // enable tracker debug (off on production)
|
||||
define('COOKIE_DBG', 'bb_dbg'); // debug cookie name
|
||||
define('SQL_DEBUG', true); // enable forum sql & cache debug
|
||||
define('SQL_LOG_ERRORS', true); // all SQL_xxx options enabled only if SQL_DEBUG == TRUE
|
||||
define('SQL_CALC_QUERY_TIME', true); // for stats
|
||||
define('SQL_LOG_SLOW_QUERIES', true); // log sql slow queries
|
||||
define('SQL_SLOW_QUERY_TIME', 10); // slow query in seconds
|
||||
define('SQL_PREPEND_SRC_COMM', false); // prepend source file comment to sql query
|
||||
define('DBG_LOG', false); // enable forum debug (off on production)
|
||||
define('DBG_TRACKER', false); // enable tracker debug (off on production)
|
||||
define('COOKIE_DBG', 'bb_dbg'); // debug cookie name
|
||||
define('SQL_DEBUG', true); // enable forum sql & cache debug
|
||||
define('SQL_LOG_NAME', 'sql_error_bb'); // mysql log filename
|
||||
define('SQL_LOG_ERRORS', true); // all SQL_xxx options enabled only if SQL_DEBUG == TRUE
|
||||
define('SQL_CALC_QUERY_TIME', true); // for stats
|
||||
define('SQL_LOG_SLOW_QUERIES', true); // log sql slow queries
|
||||
define('SQL_SLOW_QUERY_TIME', 10); // slow query in seconds
|
||||
define('SQL_PREPEND_SRC_COMM', false); // prepend source file comment to sql query
|
||||
|
||||
// Special users
|
||||
$bb_cfg['dbg_users'] = array(
|
||||
|
@ -890,7 +890,7 @@ class sql_db
|
||||
$msg[] = 'PID : '. sprintf('%05d', getmypid());
|
||||
$msg[] = 'Request : '. trim(print_r($_REQUEST, true)) . str_repeat('_', 78) . LOG_LF;
|
||||
$msg[] = '';
|
||||
bb_log($msg, 'sql_error_bb');
|
||||
bb_log($msg, SQL_LOG_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user