summaryrefslogtreecommitdiff
path: root/bos-meta-class.sh
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-08-30 14:02:22 +0100
committerdakkar <dakkar@thenautilus.net>2023-08-30 14:02:22 +0100
commit5368cd75e8086a71af7616918773f13d8d54d32b (patch)
tree96713d3185b125bc93f6824af631fc51224a1a4d /bos-meta-class.sh
parentnotes (diff)
downloadbash-object-system-5368cd75e8086a71af7616918773f13d8d54d32b.tar.gz
bash-object-system-5368cd75e8086a71af7616918773f13d8d54d32b.tar.bz2
bash-object-system-5368cd75e8086a71af7616918773f13d8d54d32b.zip
logging!
Diffstat (limited to 'bos-meta-class.sh')
-rw-r--r--bos-meta-class.sh6
1 files changed, 3 insertions, 3 deletions
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