mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-13 06:56:54 +03:00
♻️ refactor(podkop): simplify logging function
This commit is contained in:
@@ -46,11 +46,8 @@ nolog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echolog() {
|
echolog() {
|
||||||
local message="$1"
|
nolog "$1"
|
||||||
local timestamp=$(date +"%Y-%m-%d %H:%M:%S")
|
log "$1"
|
||||||
|
|
||||||
logger -t "podkop" "$timestamp $message"
|
|
||||||
echo -e "${COLOR_CYAN}[$timestamp]${COLOR_RESET} ${COLOR_GREEN}$message${COLOR_RESET}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_main() {
|
start_main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user