diff options
| author | 2017-12-16 22:58:39 +0100 | |
|---|---|---|
| committer | 2017-12-16 22:58:39 +0100 | |
| commit | ec0e21a8cb4552758eccc4faccfffad80fb9fbdd (patch) | |
| tree | 89aebac71c07dae62c3d6b86f68fe72ea4e90e8e /lib | |
| parent | 152a6a9bdc0e7a54532c2ccf65234b843ce99a23 (diff) | |
| parent | 92d9d77fe57c8f5a2407889c6c84fed1fb6f22a1 (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.php | 1 |
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 { |
