mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
Only use error handler and slowlog when debugging is enabled
This commit is contained in:
parent
6b4d69bcc2
commit
51f985c215
3 changed files with 56 additions and 32 deletions
|
|
@ -712,12 +712,16 @@ function debugPrint($entry = null)
|
|||
*/
|
||||
function writeSlowlog($type, $elapsed_time, $obj)
|
||||
{
|
||||
static $config = array();
|
||||
static $config = null;
|
||||
if (!$config)
|
||||
{
|
||||
$config = config('debug');
|
||||
}
|
||||
if(!$config['log_slow_queries'] && !$config['log_slow_triggers'] && !$config['log_slow_widgets'])
|
||||
if (!Rhymix\Framework\Debug::isEnabledForCurrentUser())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!$config['log_slow_queries'] && !$config['log_slow_triggers'] && !$config['log_slow_widgets'])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue