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 | c1a00fcc1a4cb67d8ba8ae97e90ceed95f73872d (patch) | |
| tree | b16ea631c3f8235a3d1bd2ce5b0109a939a735c5 /fsnotify.go | |
| parent | 138f72728cbbd10ea3d64888a6482d4c1a21718e (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 } |
