Peter Bieringer 1 год назад
Родитель
Сommit
b19418f43c
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 4 1
      contrib/logwatch/radicale

+ 1 - 0
CHANGELOG.md

@@ -4,6 +4,7 @@
 * Add: display mtime_ns precision of storage folder with condition warning if too less
 * Improve: disable fsync during storage verification
 * Improve: suppress duplicate log lines on startup
+* Contrib: logwatch config and script
 
 ## 3.3.2
 * Fix: debug logging in rights/from_file

+ 4 - 1
contrib/logwatch/radicale

@@ -1,6 +1,9 @@
 # This file is related to Radicale - CalDAV and CardDAV server
 #  for logwatch (script)
 # Copyright © 2024-2024 Peter Bieringer <pb@bieringer.de>
+#
+# Detail levels
+# >= 5: Logins, ResponseTimes
 
 $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
 
@@ -98,7 +101,7 @@ if (keys %Requests) {
    }
 }
 
-if ($Details >= 5 && keys %Requests) {
+if ($Detail >= 5 && keys %Requests) {
    print "\n**Successful login counters**\n";
    printf "%-25s | %7s |\n", "Login", "cnt";
    print "-" x37 . "\n";