Code Context $filesToDelete = count($files) - $this->_config['rotate'];
while ($filesToDelete > 0) {
unlink(array_shift($files));
$filename = 'error.log'
$filepath = '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log'
$result = true
$files = array(
(int) 0 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1711991577',
(int) 1 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1712410595',
(int) 2 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713000670',
(int) 3 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713391478',
(int) 4 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713515159',
(int) 5 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713515164',
(int) 6 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713609187',
(int) 7 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713609197',
(int) 8 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1713896434',
(int) 9 => '/home/nonisesh/www/swadrii/orelc/app/tmp/logs/error.log.1714018117'
)
$filesToDelete = (int) 1
unlink - [internal], line ??
FileLog::_rotateFile() - CORE/Cake/Log/Engine/FileLog.php, line 212
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 137
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 445
ErrorHandler::_log() - CORE/Cake/Error/ErrorHandler.php, line 188
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 118
[main] - [internal], line ??