mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-21 05:20:31 +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_red() { echo -e "\033[31m$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
|
||||
@@ -239,8 +239,8 @@ check_services() {
|
||||
|
||||
while true; do
|
||||
sleep 61
|
||||
log_info "----------------------------------------"
|
||||
log_info "$(date) INFO: Starting monitoring check"
|
||||
log_blue "----------------------------------------"
|
||||
log_blue "$(date) INFO: Starting monitoring check"
|
||||
any_issue=0
|
||||
|
||||
# 1) Disk usage
|
||||
@@ -263,5 +263,5 @@ while true; do
|
||||
else
|
||||
log_red "$(date) INFO: Issues detected. System status is not fully operational."
|
||||
fi
|
||||
log_info "----------------------------------------"
|
||||
log_blue "----------------------------------------"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user