1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2025-12-20 02:58:28 +00:00

Fixed: Renamed TRACE logging to VERBOSE and set trace color for VERBOSE logs

This commit is contained in:
ServarrAdmin
2025-09-17 16:45:13 -05:00
parent f0be3ea6a7
commit 683452ba5f

View File

@@ -108,7 +108,7 @@ log() {
DEBUG) DEBUG)
[[ "$DEBUG" != "true" ]] && return [[ "$DEBUG" != "true" ]] && return
;; ;;
VERBOSE|TRACE) VERBOSE)
[[ "$VERBOSE" != "true" && "$DEBUG" != "true" ]] && return [[ "$VERBOSE" != "true" && "$DEBUG" != "true" ]] && return
;; ;;
esac esac
@@ -134,9 +134,6 @@ log() {
color=$color_debug color=$color_debug
;; ;;
VERBOSE) VERBOSE)
color=$color_info
;;
TRACE)
color=$color_trace color=$color_trace
;; ;;
ERROR) ERROR)
@@ -182,10 +179,10 @@ usage() {
determine_schema_version() { determine_schema_version() {
local def_file="$1" local def_file="$1"
log "DEBUG" "Testing schema version of [$def_file]" log "DEBUG" "Testing schema version of [$def_file]"
log "TRACE" "Extracting version from file path: $def_file" log "VERBOSE" "Extracting version from file path: $def_file"
check_version=$(echo "$def_file" | cut -d'/' -f2) check_version=$(echo "$def_file" | cut -d'/' -f2)
log "TRACE" "Extracted version: $check_version" log "VERBOSE" "Extracted version: $check_version"
dir="definitions/$check_version" dir="definitions/$check_version"
schema="$dir/schema.json" schema="$dir/schema.json"