diff options
author | rare-magma <nun0@posteo.co> | 2022-06-07 20:43:04 +0200 |
---|---|---|
committer | rare-magma <nun0@posteo.co> | 2022-06-07 20:43:04 +0200 |
commit | 6a979718dcf23dfd910e595a2968c50a8ca1bea4 (patch) | |
tree | fa25033eeb959a40fd4d658e3285bb9495c63614 /devices | |
parent | 98c69b7dacf85b8b25be909b33c333491ae481ad (diff) |
use log for error instead of fmt
Diffstat (limited to 'devices')
-rw-r--r-- | devices/temp_nix.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/devices/temp_nix.go b/devices/temp_nix.go index 622f0a2..b4ef681 100644 --- a/devices/temp_nix.go +++ b/devices/temp_nix.go @@ -4,7 +4,6 @@ package devices import ( - "fmt" "log" smart "github.com/anatol/smart.go" @@ -43,7 +42,7 @@ func getTemps(temps map[string]int) map[string]error { for _, disk := range block.Disks { dev, err := smart.Open("/dev/" + disk.Name) if err != nil { - fmt.Println(err) + log.Println(err) continue } switch sm := dev.(type) { |