From 801608eeaf86d3855c8a3883d77b477a1ff36cf3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 20:10:38 +0100 Subject: check-certificates: use $LogAndError --- check-certificates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-certificates b/check-certificates index b0c2c60..ccc7b15 100644 --- a/check-certificates +++ b/check-certificates @@ -14,6 +14,7 @@ :global TimeIsSync; :global UrlEncode; :global WaitForFile; +:global LogAndError; :local FormatExpire do={ :global CharacterReplace; @@ -21,8 +22,7 @@ } :if ($TimeIsSync = false) do={ - :log warning "Time is not yet synchronized."; - :error "Warning: See log for details."; + $LogAndError "Time is not yet synchronized."; } :foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={ -- cgit v1.2.3-54-g00ecf