mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
slowlog를 위한 상수 추가
This commit is contained in:
parent
41fa49f10c
commit
020b7645d2
1 changed files with 46 additions and 1 deletions
|
|
@ -87,6 +87,9 @@ else
|
||||||
* define('__DEBUG_PROTECT_IP__', '127.0.0.1');
|
* define('__DEBUG_PROTECT_IP__', '127.0.0.1');
|
||||||
* define('__DEBUG_DB_OUTPUT__', 0);
|
* define('__DEBUG_DB_OUTPUT__', 0);
|
||||||
* define('__LOG_SLOW_QUERY__', 0);
|
* define('__LOG_SLOW_QUERY__', 0);
|
||||||
|
* define('__LOG_SLOW_TRIGGER__', 0);
|
||||||
|
* define('__LOG_SLOW_ADDON__', 0);
|
||||||
|
* define('__LOG_SLOW_WIDGET__', 0);
|
||||||
* define('__OB_GZHANDLER_ENABLE__', 1);
|
* define('__OB_GZHANDLER_ENABLE__', 1);
|
||||||
* define('__ENABLE_PHPUNIT_TEST__', 0);
|
* define('__ENABLE_PHPUNIT_TEST__', 0);
|
||||||
* define('__PROXY_SERVER__', 'http://domain:port/path');
|
* define('__PROXY_SERVER__', 'http://domain:port/path');
|
||||||
|
|
@ -167,12 +170,54 @@ if(!defined('__LOG_SLOW_QUERY__'))
|
||||||
* <pre>
|
* <pre>
|
||||||
* 0: Do not leave a log
|
* 0: Do not leave a log
|
||||||
* = 0: leave a log when the slow query takes over specified seconds
|
* = 0: leave a log when the slow query takes over specified seconds
|
||||||
* Log file is saved as ./files/_db_slow_query.php file
|
* Log file is saved as ./files/_slowlog_query.php file
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
define('__LOG_SLOW_QUERY__', 0);
|
define('__LOG_SLOW_QUERY__', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!defined('__LOG_SLOW_TRIGGER__'))
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Trigger excute time log
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 0: Do not leave a log
|
||||||
|
* > 0: leave a log when the trigger takes over specified milliseconds
|
||||||
|
* Log file is saved as ./files/_slowlog_trigger.php
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
define('__LOG_SLOW_TRIGGER__', 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!defined('__LOG_SLOW_ADDON__'))
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Addon excute time log
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 0: Do not leave a log
|
||||||
|
* > 0: leave a log when the trigger takes over specified milliseconds
|
||||||
|
* Log file is saved as ./files/_slowlog_addon.php
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
define('__LOG_SLOW_ADDON__', 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!defined('__LOG_SLOW_WIDGET__'))
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Widget excute time log
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 0: Do not leave a log
|
||||||
|
* > 0: leave a log when the widget takes over specified milliseconds
|
||||||
|
* Log file is saved as ./files/_slowlog_widget.php
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
define('__LOG_SLOW_WIDGET__', 0);
|
||||||
|
}
|
||||||
|
|
||||||
if(!defined('__DEBUG_QUERY__'))
|
if(!defined('__DEBUG_QUERY__'))
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue