Removed unnecessary sanity checks when calling Log
This commit is contained in:
parent
b6bacdd432
commit
dca62b82d1
5 changed files with 7 additions and 26 deletions
|
@ -227,7 +227,7 @@ class Database_PDO_Common extends Database_Common
|
|||
$end_time = microtime(true);
|
||||
$duration = $end_time - $start_time;
|
||||
|
||||
if ($this->config->pickles['logging'] === true && $duration >= 1)
|
||||
if ($duration >= 1)
|
||||
{
|
||||
Log::slowQuery($duration . ' seconds: ' . $loggable_query);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue