Skip to content

Commit

Permalink
Add message after log rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Dec 16, 2017
1 parent ccb8294 commit 92d9d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Minz/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ protected static function ensureMaxLogSize($file_name) {
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 {
Expand Down

0 comments on commit 92d9d77

Please sign in to comment.