aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2022-10-18 10:32:34 +1000
committeronefang2022-10-18 10:32:34 +1000
commit73a372bde4ab33a1aaa1d71b02cb842662d0b318 (patch)
treea2e2cbffa903b7a8a026d6688e65515d9665e0b2
parent;; Warning, extra type option (diff)
downloadapt-panopticon-73a372bde4ab33a1aaa1d71b02cb842662d0b318.zip
apt-panopticon-73a372bde4ab33a1aaa1d71b02cb842662d0b318.tar.gz
apt-panopticon-73a372bde4ab33a1aaa1d71b02cb842662d0b318.tar.bz2
apt-panopticon-73a372bde4ab33a1aaa1d71b02cb842662d0b318.tar.xz
Print CRITICAL errors as well as putting them in the log file.
Diffstat (limited to '')
-rw-r--r--apt-panopticommon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 3e2dc08..e380e75 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -464,7 +464,7 @@ local log = function(v, t, s, prot, test, host)
464 if nil ~= APT.logFile then 464 if nil ~= APT.logFile then
465 if APT.html then 465 if APT.html then
466 local colour = "white" 466 local colour = "white"
467 if -1 == v then colour = "fuchsia" end -- CRITICAL 467 if -1 == v then colour = "fuchsia"; print(t .. " " .. s) end -- CRITICAL
468 if 0 == v then colour = "red " end -- ERROR 468 if 0 == v then colour = "red " end -- ERROR
469 if 1 == v then colour = "yellow " end -- WARNING 469 if 1 == v then colour = "yellow " end -- WARNING
470 if 2 == v then colour = "blue " end -- TIMEOUT 470 if 2 == v then colour = "blue " end -- TIMEOUT