Просмотр исходного кода

Add message after log rotation

https://github.com/FreshRSS/FreshRSS/pull/1712
https://github.com/FreshRSS/FreshRSS/issues/1562
Alexandre Alapetite 8 лет назад
Родитель
Сommit
92d9d77fe5
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lib/Minz/Log.php

+ 1 - 0
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 {