Revert "feat: add centralized logging utilities"

This commit is contained in:
CanbiZ
2025-08-25 14:30:28 +02:00
committed by GitHub
parent 3dbd94b61f
commit af46e22bd2
7 changed files with 2 additions and 119 deletions

View File

@@ -2,16 +2,6 @@
# Author: michelroegl-brunner
# License: MIT | https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/LICENSE
if [[ -f "$(dirname "${BASH_SOURCE[0]}")/logger.func" ]]; then
source "$(dirname "${BASH_SOURCE[0]}")/logger.func"
else
if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/logger.func)
elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/logger.func)
fi
fi
get_error_description() {
local exit_code="$1"
case "$exit_code" in