mirror of
https://github.com/Prowlarr/Indexers.git
synced 2025-12-19 18:48:24 +00:00
Fixed: Renamed TRACE logging to VERBOSE and set trace color for VERBOSE logs
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user