From 4a953164122a3e55f51679ea82d1d404adf85502 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:55:01 +0900 Subject: [PATCH] feat: redact usernames --- helpers/funcs | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/funcs b/helpers/funcs index 576b5c3..99bc569 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -739,6 +739,7 @@ logger(){ local self="${BASH_SOURCE[0]}" local caller="${FUNCNAME[1]}" local line="${BASH_LINENO[0]}" + self="$(<<< "$self" sed 's@\(/[^/]*/\)\([^/]*\)\(.*\)@\1REDACTED\3@g')" printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log" } test_ping(){