diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
| commit | c420145c2eafd68f5e73b3ccadb8f442ecc878bf (patch) | |
| tree | 6a518e2f8fa179a46980b2dbbec9b1575886e0e8 /fsnotify.go | |
| parent | 3be643036f81c364bda7d5b7502da2932a54a608 (diff) | |
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'fsnotify.go')
| -rw-r--r-- | fsnotify.go | 6 |
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 } |
