Merge pull request #1726 from Alkarex/message_log_rotation

Add message after log rotation
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2017-12-16 22:58:39 +01:00
commit ec0e21a8cb
1 file changed
+1
+1
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 {