avoid unnecessary inotify warning
This commit is contained in:
parent
a500d8777b
commit
2384ff6374
1
tail.go
1
tail.go
|
@ -59,7 +59,6 @@ func TailFile(filename string, config Config) (*Tail, error) {
|
||||||
Config: config}
|
Config: config}
|
||||||
|
|
||||||
if t.Poll {
|
if t.Poll {
|
||||||
log.Println("Warning: not using inotify; will poll ", filename)
|
|
||||||
t.watcher = NewPollingFileWatcher(filename)
|
t.watcher = NewPollingFileWatcher(filename)
|
||||||
} else {
|
} else {
|
||||||
t.watcher = NewInotifyFileWatcher(filename)
|
t.watcher = NewInotifyFileWatcher(filename)
|
||||||
|
|
Loading…
Reference in New Issue