diff --git a/install.sh b/install.sh index cb43314..c0d0b8f 100644 --- a/install.sh +++ b/install.sh @@ -2403,7 +2403,7 @@ gather_diagnostics() { echo "$LOG_DIVIDER" echo " Watchdog log" echo "$LOG_DIVIDER" - timeout -k 15 10 cat "$WATCHDOG_LOG_FILE" + timeout -k 15 10 tail -n 200 "$WATCHDOG_LOG_FILE" } >>"$SUPPORT_LOG" fi @@ -2412,7 +2412,7 @@ gather_diagnostics() { echo "$LOG_DIVIDER" echo " Watchdog failures log" echo "$LOG_DIVIDER" - timeout -k 15 10 cat "$WATCHDOG_FAILURES_FILE" + timeout -k 15 10 tail -n 200 "$WATCHDOG_FAILURES_FILE" } >>"$SUPPORT_LOG" fi @@ -2491,7 +2491,6 @@ send_diagnostics() { retry_diagnostics 100 50 "$curr_time" retry_diagnostics 50 50 "$curr_time" retry_diagnostics 50 20 "$curr_time" - retry_diagnostics 20 10 "$curr_time" ohai "Wysyłanie maila" diff --git a/src/lib.sh b/src/lib.sh index 365887e..986d047 100644 --- a/src/lib.sh +++ b/src/lib.sh @@ -2387,7 +2387,7 @@ gather_diagnostics() { echo "$LOG_DIVIDER" echo " Watchdog log" echo "$LOG_DIVIDER" - timeout -k 15 10 cat "$WATCHDOG_LOG_FILE" + timeout -k 15 10 tail -n 200 "$WATCHDOG_LOG_FILE" } >>"$SUPPORT_LOG" fi @@ -2396,7 +2396,7 @@ gather_diagnostics() { echo "$LOG_DIVIDER" echo " Watchdog failures log" echo "$LOG_DIVIDER" - timeout -k 15 10 cat "$WATCHDOG_FAILURES_FILE" + timeout -k 15 10 tail -n 200 "$WATCHDOG_FAILURES_FILE" } >>"$SUPPORT_LOG" fi @@ -2475,7 +2475,6 @@ send_diagnostics() { retry_diagnostics 100 50 "$curr_time" retry_diagnostics 50 50 "$curr_time" retry_diagnostics 50 20 "$curr_time" - retry_diagnostics 20 10 "$curr_time" ohai "Wysyłanie maila" diff --git a/updated b/updated index dde7551..558bc78 100644 --- a/updated +++ b/updated @@ -1 +1 @@ -2025-03-13T11:08:36.905Z \ No newline at end of file +2025-03-13T11:19:37.598Z \ No newline at end of file