♻️ refactor(podkop): simplify logging function

This commit is contained in:
Ivan K
2025-05-12 16:48:59 +03:00
parent dd4722f3e1
commit e9face1f4a

View File

@@ -46,11 +46,8 @@ nolog() {
}
echolog() {
local message="$1"
local timestamp=$(date +"%Y-%m-%d %H:%M:%S")
logger -t "podkop" "$timestamp $message"
echo -e "${COLOR_CYAN}[$timestamp]${COLOR_RESET} ${COLOR_GREEN}$message${COLOR_RESET}"
nolog "$1"
log "$1"
}
start_main() {