diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php index 5e7831cdb50..a8dbf835095 100644 --- a/lib/Minz/Log.php +++ b/lib/Minz/Log.php @@ -98,6 +98,7 @@ protected static function ensureMaxLogSize($file_name) { 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 {