Skip to content

Commit 9b3939f

Browse files
committed
avoid warning in server:start
1 parent 5f17f1d commit 9b3939f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

local/logs/tailer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func (tailer *Tailer) Watch(pidFile *pid.PidFile) error {
110110
if _, ok := seenDirs.Load(e.Path()); ok {
111111
continue
112112
}
113+
if fi, err := os.Stat(e.Path()); err == nil && fi.IsDir() {
114+
continue
115+
}
113116
p, err := pid.Load(e.Path())
114117
if err != nil {
115118
terminal.Printfln("<warning>WARNING</> %s", err)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy