diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 13:55:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 13:55:46 -0600 |
| commit | 398d9fe3c44bdc8832fbf290beea7b6d13538f4b (patch) | |
| tree | d02cebf598aef028ba24a37d9d93f38364c144a3 /linuxstatus/update.go | |
| parent | b7c90c8bbccb5eb15a06bc6a370074c756d698ff (diff) | |
works in sierpinski carpet mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/update.go')
| -rw-r--r-- | linuxstatus/update.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
