diff options
author | Christian Hesse <mail@eworm.de> | 2024-05-08 12:30:13 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-05-08 12:30:13 +0200 |
commit | fb7170f3121dd9e25cc320e5f0c98d1829e49d33 (patch) | |
tree | 06f4e38fa40268528605a9c01b8bb70a88c317c0 | |
parent | eae8dbbb378dbfe43c83e77529895747da0e260e (diff) |
global-functions: $IsTimeSync: log just once
-rw-r--r-- | global-functions.rsc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index e8163ed..5cc665c 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -673,7 +673,7 @@ :global IsTimeSyncCached; :global IsTimeSyncResetNtp; - :global LogPrint; + :global LogPrintOnce; :if ($IsTimeSyncCached = true) do={ :return true; @@ -702,7 +702,7 @@ :if ([ /system/license/get ]->"level" = "free" || \ [ /system/resource/get ]->"board-name" = "x86") do={ - $LogPrint debug $0 ("No ntp client configured, relying on RTC for CHR free license and x86."); + $LogPrintOnce debug $0 ("No ntp client configured, relying on RTC for CHR free license and x86."); :return true; } @@ -714,7 +714,7 @@ :return false; } - $LogPrint debug $0 ("No time source configured! Returning gracefully..."); + $LogPrintOnce debug $0 ("No time source configured! Returning gracefully..."); :return true; } |