mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 06:22:20 +09:00
slowlog 를 원하는 아이피에서만 실행 하도록 개선
This commit is contained in:
parent
a37087f48c
commit
7e48ea11cf
2 changed files with 20 additions and 0 deletions
|
|
@ -109,6 +109,25 @@ if(!defined('__LOG_SLOW_WIDGET__'))
|
|||
define('__LOG_SLOW_WIDGET__', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* output comments of the slowlog files
|
||||
*
|
||||
* 0: No limit (not recommended)
|
||||
* 1: Allow only specified IP addresses
|
||||
*/
|
||||
if(!defined('__LOG_SLOW_PROTECT__'))
|
||||
{
|
||||
define('__LOG_SLOW_PROTECT__', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a ip address to allow slowlog
|
||||
*/
|
||||
if(!defined('__LOG_SLOW_PROTECT_IP__'))
|
||||
{
|
||||
define('__LOG_SLOW_PROTECT_IP__', '127.0.0.1');
|
||||
}
|
||||
|
||||
/**
|
||||
* Leave DB query information
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue