Parcourir la source

Add message after log rotation

https://github.com/FreshRSS/FreshRSS/pull/1712
https://github.com/FreshRSS/FreshRSS/issues/1562
Alexandre Alapetite il y a 8 ans
Parent
commit
92d9d77fe5
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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 {