From e7320cb7b9f9153db366fbd6d0acb098a9c8da37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Oct 2020 18:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Error/Logger.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/System/Error/Logger.php b/System/Error/Logger.php index 5aed98e2..33a6d760 100644 --- a/System/Error/Logger.php +++ b/System/Error/Logger.php @@ -157,12 +157,12 @@ class Logger extends Component $files = glob(storage(null, $dirName) . '/*'); if (count($files) >= 5) { $time = strtotime(date('Y-m-d', strtotime('-10days'))); - foreach ($files as $file) { - if (filectime($file) < $time) { - continue; - } - @unlink($file); - } +// foreach (array_slice($files, 0, count($files) - 5) as $file) { +// if (filectime($file) < $time) { +// continue; +// } +// @unlink($file); +// } } }