feature 3221 Lazy log file open, clean code

git-svn-id: http://piwigo.org/svn/trunk@31103 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2015-04-24 17:06:47 +00:00
parent 0c576ea19d
commit 271e1f5688
3 changed files with 86 additions and 49 deletions
+2 -2
View File
@@ -614,9 +614,9 @@ $timing['send'] = time_step($step);
$timing['total'] = time_step($begin);
if ($logger->severity() >= Logger::INFO)
if ($logger->severity() >= Logger::DEBUG)
{
$logger->info('perf', 'i.php', array(
$logger->debug('', 'i.php', array(
'src_path' => basename($page['src_path']),
'derivative_path' => basename($page['derivative_path']),
'o_size' => $o_size[0] . ' ' . $o_size[1] . ' ' . ($o_size[0]*$o_size[1]),