From 92d9d77fe57c8f5a2407889c6c84fed1fb6f22a1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 16 Dec 2017 17:37:32 +0100 Subject: Add message after log rotation https://github.com/FreshRSS/FreshRSS/pull/1712 https://github.com/FreshRSS/FreshRSS/issues/1562 --- lib/Minz/Log.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php index 5e7831cdb..a8dbf8350 100644 --- a/lib/Minz/Log.php +++ b/lib/Minz/Log.php @@ -98,6 +98,7 @@ class Minz_Log { rewind($fp); ftruncate($fp, 0); fwrite($fp, $content ? $content : ''); + fwrite($fp, sprintf("[%s] [notice] --- Log rotate.\n", date('r'))); fflush($fp); flock($fp, LOCK_UN); } else { -- cgit v1.2.3