aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:29:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:29:08 +0200
commit1f1fef9fb59ec6653f3faff1096708039883dfc5 (patch)
tree96b3130d88162f9d08d9476895fb585cf8d995e0 /check-health
parentb2d1b64bd2801cfbad728896f4302111272205b2 (diff)
check-health: use $LogPrintExit
Diffstat (limited to 'check-health')
-rw-r--r--check-health3
1 files changed, 2 insertions, 1 deletions
diff --git a/check-health b/check-health
index ef9fd23..e41984f 100644
--- a/check-health
+++ b/check-health
@@ -10,6 +10,7 @@
:global CheckHealthVoltagePercent;
:global Identity;
+:global LogPrintExit;
:global SendNotification;
:local FormatVoltage do={
@@ -52,7 +53,7 @@
:if ([ :typeof ($CheckHealthLast->$Temperature) ] = "num" && \
[ :typeof ($CheckHealthCurrent->$Temperature) ] = "num") do={
:if ([ :typeof ($CheckHealthTemperature->$Temperature) ] != "num" ) do={
- :log warning ("No threshold given for " . $Temperature . ", assuming 50C.");
+ $LogPrintExit warning ("No threshold given for " . $Temperature . ", assuming 50C.") false;
:set ($CheckHealthTemperature->$Temperature) 50;
}
:if ($CheckHealthLast->$Temperature <= $CheckHealthTemperature->$Temperature && \