♻️ refactor(podkop): simplify logging function

This commit is contained in:
Ivan K
2025-05-12 16:48:59 +03:00
parent af4254ec6d
commit 21a3b8d007
+2 -5
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() {