Compare commits

..

1 Commits

Author SHA1 Message Date
Geoff Bourne
dfdc95572a Apply logging prefix on output from DEBUG_MEMORY 2026-03-14 09:35:43 -05:00
3 changed files with 10 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ MarkupSafe==3.0.3
mergedeep==1.3.4
mkdocs==1.6.1
mkdocs-autorefs==1.4.4
mkdocs-get-deps==0.2.2
mkdocs-get-deps==0.2.0
mkdocstrings==1.0.3
mkdocstrings-python==2.0.3
packaging==26.0
@@ -22,4 +22,4 @@ PyYAML==6.0.3
pyyaml_env_tag==1.1
six==1.17.0
watchdog==6.0.0
zensical==0.0.27
zensical==0.0.24

View File

@@ -54,8 +54,8 @@ fi
if isTrue "${DEBUG_MEMORY:-false}"; then
log "Memory usage and availability (in MB)"
uname -pars
free -m
uname -pars | applyLogPrefix
free -m | applyLogPrefix
fi
##########################################

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.