refactor: improve log and error messages (#2708)
This commit is contained in:
1 parent
5d3c7b7025
commit
664d7c88e1
10 files changed
+55
-52
No files matched your search
@@ -46,7 +46,7 @@ func (watch *watch) start() {
|
||||
|
||||
watcher, err := fsnotify.NewWatcher()
|
||||
if err != nil {
|
||||
log.Printf("start watcher: %s", err)
|
||||
log.Printf("starting watcher: %s", err)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ func (watch *watch) add(path string) {
|
||||
}
|
||||
|
||||
if err := watch.watcher.Add(path); err != nil {
|
||||
log.Printf("watch path %s: %s", path, err)
|
||||
log.Printf("watching path %s: %s", path, err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user