Commit Graph

109 Commits

Author SHA1 Message Date
Sridhar Ratnakumar fc42d757b5 test: ensure that subsequent line(s) are being skipped 2014-04-28 14:15:17 -07:00
Sridhar Ratnakumar d2a44130c2 explain what the +2 is for
/
2014-04-28 14:14:21 -07:00
Sridhar Ratnakumar 074c77ccbf update test for parent commit 2014-04-28 12:56:31 -07:00
Sridhar Ratnakumar 64e99b360f make cool-off error message less obscure 2014-04-28 12:49:23 -07:00
Sridhar Ratnakumar d21b644dea Merge pull request #26 from ActiveState/update_fsnotify
update fsnotify to latest
2014-04-12 17:06:04 -07:00
Sridhar Ratnakumar a1e489f93d update fsnotify to latest 2014-04-12 17:02:59 -07:00
Sridhar Ratnakumar 214eb29af3 fulltest should be run on saucy image
for Go 1.2
2014-04-12 17:02:34 -07:00
Sridhar Ratnakumar baf6674f00 add copyright statements 2014-04-12 16:59:40 -07:00
Sridhar Ratnakumar f6d4bc16d4 note PR #24 in change log 2014-04-12 16:32:04 -07:00
Sridhar Ratnakumar 9f7054d896 Merge pull request #24 from masahide/add-test-over4096byte-line
Support lines of length more than 4096 bytes
2014-04-12 16:30:28 -07:00
YAMASAKI masahide 6a3ddb6ced If specified the MaxLineSize, then set to the bufio.reader MaxLineSize. 2014-04-06 09:48:37 +09:00
funkygao 7ccd8397a1 fix problem of long line EOF 2014-04-05 17:53:23 +09:00
Sridhar Ratnakumar 24d682e8af Merge pull request #25 from ActiveState/travis_test_fix
Test fixes for travis-ci
2014-03-21 22:35:31 -07:00
Sridhar Ratnakumar 3da62cd5ae account for POLL_DURATION in the reopen test
ref: https://travis-ci.org/ActiveState/tail/builds/21301728
2014-03-21 22:32:56 -07:00
Sridhar Ratnakumar 0383a079b7 make travis config work 2014-03-21 22:32:20 -07:00
Sridhar Ratnakumar a7279e8208 add build status to README 2014-03-21 22:02:52 -07:00
Sridhar Ratnakumar efd9baa50f add .travis.yml 2014-03-21 22:00:08 -07:00
Sridhar Ratnakumar 039d5571ac changelog update for PR #22 2014-02-22 23:51:39 -08:00
Sridhar Ratnakumar 751a3add5c Merge pull request #22 from GeertJohan/master
Add logging options to config
2014-02-22 23:51:04 -08:00
GeertJohan 3b09eddf4d Removed conig option DisableLogging. Add DiscardingLogger instead. 2014-02-22 15:48:23 +01:00
Geert-Johan Riemer 0c51ff11d1 Add logging options to config 2014-01-30 13:47:28 +01:00
Sridhar Ratnakumar be2914fd12 minor clarification in the Cleanup comment
we are not totally sure if this is an issue in every distro/kernel/environment.
2014-01-04 23:19:15 +05:30
Sridhar Ratnakumar 36ba8bccb9 advance fsnotify pinning to latest stable revision
also flatten the dependency spec using git-clone
2013-11-22 16:45:56 -08:00
Sridhar Ratnakumar c5b73d3485 add NewLine helper to create a Line instance 2013-11-14 09:44:28 -08:00
Sridhar Ratnakumar f3593827b3 Merge pull request #20 from ActiveState/inotify_cleanup
add Cleanup function to close open inotify watches
2013-11-13 17:43:11 -08:00
Sridhar Ratnakumar accbe0dc99 descriptive comment for the Cleanup function 2013-11-13 17:41:13 -08:00
Sridhar Ratnakumar 6ffcd854c1 run 'go fmt' (and fix 'make fmt' in Makefile) 2013-11-13 17:38:23 -08:00
Sridhar Ratnakumar ebc25f9788 update change log 2013-11-13 17:37:03 -08:00
Sridhar Ratnakumar 323e1c0988 add Cleanup function to close open inotify watches
bug: 101635
2013-11-12 20:15:27 -08:00
Sridhar Ratnakumar 7cb0dcdbe1 add deps.json for use with depman 2013-11-07 21:09:27 -08:00
Sridhar Ratnakumar 56c4b221b8 replace the alarmist panic with Fatal
Fatal shows only a single goroutine stacktrace.
2013-10-11 18:19:43 -07:00
Sridhar Ratnakumar 88298d7cf8 Merge pull request #18 from miraclesu/fix_stop_hang
Fix a hang in `Stop` when tailing a non-existent file

Reproducible on linux, but not on mac.
2013-09-23 18:19:18 -07:00
miraclesu 058eb3d8df combine two if conditions 2013-09-24 09:13:19 +08:00
Sridhar Ratnakumar c9444e81ae Merge pull request #17 from presbrey/patch-1
fix race/panic on modify+delete
2013-09-23 11:58:53 -07:00
miraclesu a7f9b4b6fc Fixed stop hang & stop err 2013-09-23 15:03:51 +08:00
presbrey afd80c034c fix race/panic on modify+delete
This fixes a race condition when a file is modified and unlinked in the OS before the inotify IsModify event has a chance to call os.Stat.
2013-09-22 22:51:12 -04:00
Sridhar Ratnakumar 45a47abe0e refactor 2013-09-17 16:54:55 -07:00
Sridhar Ratnakumar 4fb4f2aa10 fulltest: run go install 2013-09-09 03:20:08 +00:00
Sridhar Ratnakumar f3332f1697 fulltest must use the local source, not master 2013-09-09 03:13:12 +00:00
Sridhar Ratnakumar 45e3f1a853 system testing using docker 2013-09-09 03:04:39 +00:00
Sridhar Ratnakumar b87764baaf Merge pull request #14 from QLeelulu/master
add Tell to return the file's current position, like stdio's ftell().
2013-08-24 14:01:07 -07:00
QLeelulu 1a8af20665 add tail.Tell's test 2013-08-24 15:43:25 +08:00
QLeelulu 40bd571489 add Tell to return the file's current position, like stdio's ftell(). 2013-08-23 18:04:21 +08:00
Sridhar Ratnakumar 277b98d6a1 update README 2013-08-09 15:15:40 -07:00
Sridhar Ratnakumar fdc1517c8b Merge pull request #12 from ActiveState/better_location
Ability to seek to anywhere in the file before tailing
2013-08-09 15:10:35 -07:00
Sridhar Ratnakumar 275e6442bd tests for the new Location spec 2013-08-09 14:57:38 -07:00
Sridhar Ratnakumar faf14146e7 tail.Location is now the most customizable
as it is now a tuple; (offset, whence) from os.Seek
2013-08-09 14:53:37 -07:00
Sridhar Ratnakumar 8d9c6e4ce1 allow seeking from beginning and end 2013-08-09 14:42:51 -07:00
Sridhar Ratnakumar 1e2bc8afe8 support arbitrary values for `Location` 2013-07-12 15:30:31 -07:00
Sridhar Ratnakumar 6af3d03d43 typo 2013-07-11 18:36:12 -07:00