1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-27 04:42:35 +01:00

feat: redact usernames

This commit is contained in:
aclist 2024-12-18 20:55:01 +09:00
parent 99d964bf44
commit 4a95316412

View file

@ -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(){