Quellcode durchsuchen

Improve error logging for vnStat image generation with configuration reminder

TheHuman00 vor 10 Monaten
Ursprung
Commit
47edc5a6bf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      chrony-network-stats.sh

+ 1 - 1
chrony-network-stats.sh

@@ -64,7 +64,7 @@ generate_vnstat_images() {
     local modes=("s" "d" "t" "h" "m" "y")
     for mode in "${modes[@]}"; do
         vnstati -"$mode" -i "$INTERFACE" -o "$OUTPUT_DIR/img/vnstat_${mode}.png" || {
-            log_message "ERROR" "Failed to generate vnstat image for mode $mode"
+            log_message "ERROR" "Failed to generate vnstat image for mode $mode Cehck configuaration section : INTERFACE=\"here\""
             exit 1
         }
     done