From c420145c2eafd68f5e73b3ccadb8f442ecc878bf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 19:33:13 -0600 Subject: use 'go.wit.com/log' Signed-off-by: Jeff Carr --- fsnotify.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fsnotify.go') 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 } -- cgit v1.2.3