From 5368cd75e8086a71af7616918773f13d8d54d32b Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 30 Aug 2023 14:02:22 +0100 Subject: logging! --- bos-meta-attribute.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bos-meta-attribute.sh') diff --git a/bos-meta-attribute.sh b/bos-meta-attribute.sh index 1153d3a..954ea8d 100644 --- a/bos-meta-attribute.sh +++ b/bos-meta-attribute.sh @@ -33,7 +33,7 @@ function bos/meta/attribute/get-attribute-name-into() { local -n bos_meta_attribute_name="$bos_meta_attribute_name_store" - >&2 echo "get-attribute-name-into($1)<-$bos_meta_attribute_name_store" + bos/log 5 "get-attribute-name-into($1)<-$bos_meta_attribute_name_store" local -n bos_meta_attribute_name_dest="$1" bos_meta_attribute_name_dest="$bos_meta_attribute_name" } @@ -88,7 +88,7 @@ function bos/meta/attribute/set-value() { assoc) eval "bos_meta_attribute_store=( ${@@Q} )" ;; esac - >&2 echo -n 'set-value()'; >&2 declare -p "$bos_meta_attribute_store_name" + bos/log 5 "set-value() $(declare -p "$bos_meta_attribute_store_name")" return 0 } @@ -108,7 +108,7 @@ function bos/meta/attribute/get-value-into() { local attribute_type="$bos_meta_attribute_get_type" local associated_class="$bos_meta_attribute_get_class" - >&2 echo "getting ($self) ($attribute_name) ($attribute_type) ($associated_class) ($1)" + bos/log 5 "getting ($self) ($attribute_name) ($attribute_type) ($associated_class) ($1)" local bos_meta_attribute_store_name; $self store-for-into bos_meta_attribute_store_name "$1" local -n bos_meta_attribute_store="$bos_meta_attribute_store_name" @@ -126,7 +126,7 @@ function bos/meta/attribute/get-value-into() { ;; esac - >&2 declare -p "$bos_meta_attribute_result_name" + bos/log 5 "$(declare -p "$bos_meta_attribute_result_name")" return 0 } -- cgit v1.2.3