From a8f4ba1b05fe927a6d986bcc7e990b8ccd7346f6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 13:55:46 -0600 Subject: works in sierpinski carpet mode Signed-off-by: Jeff Carr --- linuxstatus/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linuxstatus/update.go') diff --git a/linuxstatus/update.go b/linuxstatus/update.go index 0de7cf9..686d799 100644 --- a/linuxstatus/update.go +++ b/linuxstatus/update.go @@ -10,7 +10,7 @@ import ( func (ls *LinuxStatus) Update() { if ! ls.Ready() { - log.Warn("can't update yet. ready is false") + log.Log(WARN, "can't update yet. ready is false") log.Error(errors.New("Update() is not ready yet")) return } @@ -19,13 +19,13 @@ func (ls *LinuxStatus) Update() { linuxLoop() }) ls.SetSpeed(duration) - log.Info("linuxStatus() Update() END") + log.Log(INFO, "Update() END") } func (ls *LinuxStatus) SetSpeed(duration time.Duration) { s := fmt.Sprint(duration) if ls.speedActual == nil { - log.Warn("can't actually warn") + log.Log(WARN, "can't actually warn") return } ls.speedActual.Set(s) -- cgit v1.2.3