summaryrefslogtreecommitdiff
path: root/fsnotify.go
diff options
context:
space:
mode:
Diffstat (limited to 'fsnotify.go')
-rw-r--r--fsnotify.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/fsnotify.go b/fsnotify.go
index 23809e6..cf38b50 100644
--- a/fsnotify.go
+++ b/fsnotify.go
@@ -3,7 +3,7 @@ package main
// Watches for changes to a directory. Works cross-platform
import (
- "log"
+ "go.wit.com/log"
"github.com/fsnotify/fsnotify"
)
@@ -14,7 +14,7 @@ func watchSysClassNet() {
// Create new watcher.
watcher, err := fsnotify.NewWatcher()
if err != nil {
- debug(LogError, "watchSysClassNet() failed:", err)
+ log.Error(err, "watchSysClassNet() failed")
return
}
defer watcher.Close()
@@ -43,7 +43,7 @@ func watchSysClassNet() {
// Add a path.
err = watcher.Add("/tmp")
if err != nil {
- debug(LogError, "watchSysClassNet() watcher.Add() failed:", err)
+ log.Error(err, "watchSysClassNet() watcher.Add() failed")
return
}