From 5368cd75e8086a71af7616918773f13d8d54d32b Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 30 Aug 2023 14:02:22 +0100 Subject: logging! --- bos-meta-class.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bos-meta-class.sh') diff --git a/bos-meta-class.sh b/bos-meta-class.sh index a02ddb1..63a9361 100644 --- a/bos-meta-class.sh +++ b/bos-meta-class.sh @@ -95,7 +95,7 @@ function bos/meta/class/find-method-into() { done # TODO: better error / failure - >&2 echo "method $method not found via class $class" + bos/log 1 "method $method not found via class $class" return 1 } @@ -103,7 +103,7 @@ function bos/meta/class/find-method-into() { # that the class that this metaclass describe, actuall has that # attribute function bos/meta/class/get-attribute-by-name-into() { - >&2 echo "get-attribute-by-name-into($*)" + bos/log 5 "get-attribute-by-name-into($*)" local -n bos_meta_class_get_attribute_result="$1"; shift local bos_meta_class_get_attribute_name="$1" local bos_meta_class_attrs_name @@ -177,7 +177,7 @@ function bos/meta/class/invoke() { local bos_invoke_attrs_attr $bos_invoke_target_metaclass_instance get-attribute-by-name-into bos_invoke_attrs_attr 'class_attributes' - >&2 echo "for (${bos_invoke_class}->${bos_invoke_target_class}) class_attributes = $bos_invoke_attrs_attr" + bos/log 5 "for (${bos_invoke_class}->${bos_invoke_target_class}) class_attributes = $bos_invoke_attrs_attr" if [[ -n "$bos_invoke_attrs_attr" ]]; then local -A bos_invoke_attrs -- cgit v1.2.3