aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-16 17:37:32 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-16 18:08:08 +0100
commit92d9d77fe57c8f5a2407889c6c84fed1fb6f22a1 (patch)
tree39f20e0253b55d7c207c5a056534e2552d5328fd
parentccb829418d25af49d129ac227b0cbd09c085b8a3 (diff)
Add message after log rotation
https://github.com/FreshRSS/FreshRSS/pull/1712 https://github.com/FreshRSS/FreshRSS/issues/1562
-rw-r--r--lib/Minz/Log.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php
index 5e7831cdb..a8dbf8350 100644
--- a/lib/Minz/Log.php
+++ b/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 {