mirror of
https://github.com/aclist/dztui.git
synced 2024-12-27 21:02:36 +01:00
feat: redact usernames
This commit is contained in:
parent
4a95316412
commit
9b2ec79aa5
1 changed files with 1 additions and 0 deletions
1
dzgui.sh
1
dzgui.sh
|
@ -83,6 +83,7 @@ logger(){
|
||||||
local self="${BASH_SOURCE[0]}"
|
local self="${BASH_SOURCE[0]}"
|
||||||
local caller="${FUNCNAME[1]}"
|
local caller="${FUNCNAME[1]}"
|
||||||
local line="${BASH_LINENO[0]}"
|
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"
|
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log"
|
||||||
}
|
}
|
||||||
setup_dirs(){
|
setup_dirs(){
|
||||||
|
|
Loading…
Reference in a new issue