mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-06 22:18:48 +02:00
Clarify logs
This commit is contained in:
@@ -10,7 +10,7 @@ HOME="/home/pi"
|
|||||||
log_green() { echo -e "\033[32m$1\033[0m"; }
|
log_green() { echo -e "\033[32m$1\033[0m"; }
|
||||||
log_red() { echo -e "\033[31m$1\033[0m"; }
|
log_red() { echo -e "\033[31m$1\033[0m"; }
|
||||||
log_yellow() { echo -e "\033[33m$1\033[0m"; }
|
log_yellow() { echo -e "\033[33m$1\033[0m"; }
|
||||||
log_info() { echo -e "\033[34m$1\033[0m"; }
|
log_blue() { echo -e "\033[34m$1\033[0m"; }
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Read configuration
|
# Read configuration
|
||||||
@@ -239,8 +239,8 @@ check_services() {
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
sleep 61
|
sleep 61
|
||||||
log_info "----------------------------------------"
|
log_blue "----------------------------------------"
|
||||||
log_info "$(date) INFO: Starting monitoring check"
|
log_blue "$(date) INFO: Starting monitoring check"
|
||||||
any_issue=0
|
any_issue=0
|
||||||
|
|
||||||
# 1) Disk usage
|
# 1) Disk usage
|
||||||
@@ -263,5 +263,5 @@ while true; do
|
|||||||
else
|
else
|
||||||
log_red "$(date) INFO: Issues detected. System status is not fully operational."
|
log_red "$(date) INFO: Issues detected. System status is not fully operational."
|
||||||
fi
|
fi
|
||||||
log_info "----------------------------------------"
|
log_blue "----------------------------------------"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user