Skip to content
Snippets Groups Projects
Commit d8dfd80a authored by Simon McVittie's avatar Simon McVittie
Browse files

Unload LD_PRELOAD modules when running date(1) for logging


It's distracting to see messages about gameoverlayrenderer all over the
place.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 114917d0
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ fi
log () {
if [ -n "$use_timestamp" ]; then
printf '%s\n' "$(date +'%H:%M:%S.%6N'): ${me}[$$]: $*" >&2
printf '%s\n' "$(LD_PRELOAD= date +'%H:%M:%S.%6N'): ${me}[$$]: $*" >&2
else
printf '%s\n' "${me}[$$]: $*" >&2
fi
......
......@@ -34,7 +34,7 @@ fi
log () {
if [ -n "$use_timestamp" ]; then
timestamp=$(date +'%H:%M:%S.%6N')
timestamp=$(LD_PRELOAD= date +'%H:%M:%S.%6N')
printf '%s\n' "${timestamp}: ${me}[$$]: $*" >&2
else
printf '%s\n' "${me}[$$]: $*" >&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment