aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-16 22:58:39 +0100
committerGravatar GitHub <noreply@github.com> 2017-12-16 22:58:39 +0100
commitec0e21a8cb4552758eccc4faccfffad80fb9fbdd (patch)
tree89aebac71c07dae62c3d6b86f68fe72ea4e90e8e /lib
parent152a6a9bdc0e7a54532c2ccf65234b843ce99a23 (diff)
parent92d9d77fe57c8f5a2407889c6c84fed1fb6f22a1 (diff)
Merge pull request #1726 from Alkarex/message_log_rotation
Add message after log rotation
Diffstat (limited to 'lib')
-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 {