forked from doms/iptv
e
add more logging to epg-fetch.py and health.sh
This commit is contained in:
parent
6f01743391
commit
00000d947f
2 changed files with 68 additions and 48 deletions
|
|
@ -14,6 +14,8 @@ get_status() {
|
|||
[[ "$url" != http* ]] && return
|
||||
|
||||
for attempt in $(seq 1 "$RETRY_COUNT"); do
|
||||
echo "Checking '$url'"
|
||||
|
||||
response=$(
|
||||
curl -skL \
|
||||
-A "$UA" \
|
||||
|
|
@ -22,7 +24,7 @@ get_status() {
|
|||
-H "Accept-Encoding: gzip, deflate, br" \
|
||||
-H "Connection: keep-alive" \
|
||||
-o /dev/null \
|
||||
--max-time 15 \
|
||||
--max-time 30 \
|
||||
-w "%{http_code}" \
|
||||
"$url" 2>&1
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue