Apply logging prefix on output from DEBUG_MEMORY (#3975)

This commit is contained in:
Geoff Bourne
2026-03-17 08:04:46 -05:00
committed by GitHub
parent 68bb650617
commit cf8ab31e25
2 changed files with 8 additions and 2 deletions

View File

@@ -125,6 +125,12 @@ function logn() {
echo -n "[init] $*"
}
# Use as
# cmd | applyLogPrefix
function applyLogPrefix() {
sed 's/^/[init] /'
}
function log() {
local oldState
# The return status when listing options is zero if all optnames are enabled, non- zero otherwise.