Merge pull request #1726 from Alkarex/message_log_rotation

Add message after log rotation
This commit is contained in:
Alexandre Alapetite
2017-12-16 22:58:39 +01:00
committed by GitHub

View File

@@ -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 {