浏览代码

Improve error logging for vnStat image generation with configuration reminder

TheHuman00 10 月之前
父节点
当前提交
47edc5a6bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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