Commit Graph

6 Commits

Author SHA1 Message Date
Andy Xie
2c1d001857 add error log for open log file 2017-01-06 10:52:03 +08:00
Random-Liu
3c3f070720 Fix bug in tail. 2016-11-10 11:39:22 -08:00
Tim St. Clair
afe67fec68
Cleanup comment style: // should be proceded by a space 2016-10-07 17:06:02 -07:00
Tim St. Clair
2f0af7bb40 Fixes for log tailing
IN_ATTRIB inotify events are generated when atime / mtime is changed,
which would cause the tail to be reset, and reread the same log
again (generating duplicate events). Instead, watch the directory for
file delete / move.

Also, use an exponential backoff when retrying opening the file.
2016-05-18 18:53:35 -07:00
Tim St. Clair
ee24f28f73 Cleanup tail util from #1264 2016-05-18 14:36:12 -07:00
Seth Jennings
4790ea203b add log file tailing and logrotate support 2016-05-17 23:12:52 -05:00