Skip to content

Commit ea4a0f3

Browse files
committed
chore: fix temp log
1 parent 6e10296 commit ea4a0f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ func sendPVEStatusToTelegram(text string, temp float64, conf *Config) error {
132132
return fmt.Errorf("request failed with status code: %s", resp.Status)
133133
}
134134

135+
defer log.Printf("%.1f°C", temp)
136+
135137
if !conf.PinLatest {
136138
return nil
137139
}
@@ -151,7 +153,6 @@ func sendPVEStatusToTelegram(text string, temp float64, conf *Config) error {
151153
return err
152154
}
153155

154-
log.Printf("%.1f°C", temp)
155156
return nil
156157
}
157158

0 commit comments

Comments
 (0)