10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8827d commit 8b9f6cdCopy full SHA for 8b9f6cd
local/logs/tailer.go
@@ -120,7 +120,7 @@ func (tailer *Tailer) Watch(pidFile *pid.PidFile) error {
120
if err := inotify.Watch(dir, watcherChan, inotify.Create); err != nil {
121
return errors.Wrap(err, "unable to watch the applog directory")
122
}
123
- go func() {
+ go func(applog string) {
124
for {
125
e := <-watcherChan
126
if e.Path() != applog {
@@ -141,7 +141,7 @@ func (tailer *Tailer) Watch(pidFile *pid.PidFile) error {
141
142
}()
143
144
- }()
+ }(applog)
145
watcherChan <- logFileEvent(applog)
146
147
0 commit comments