check mutex: change to debug

It spams up the log and it does wc -l which takes up processing, so put
as debug rather than log so its optional.
This commit is contained in:
Peter John Hartman
2023-02-18 08:43:26 -06:00
parent 15551ca895
commit fd8d87cc2c

View File

@@ -21,7 +21,7 @@ lock() {
flock 3
REASON="$1"
printf "%s\n" "$REASON" >> "$REASON_FILE"
sxmo_log "lock \"$MUTEX_NAME\", total: $(wc -l < "$REASON_FILE"), \"$REASON\""
sxmo_debug "lock \"$MUTEX_NAME\", total: $(wc -l < "$REASON_FILE"), \"$REASON\""
}
free() {
@@ -30,7 +30,7 @@ free() {
grep -xnm1 "$REASON" "$REASON_FILE" | \
cut -d: -f1 | \
xargs -r -I{} sed -i '{}d' "$REASON_FILE"
sxmo_log "free \"$MUTEX_NAME\", total: $(wc -l < "$REASON_FILE"), \"$REASON\""
sxmo_debug "free \"$MUTEX_NAME\", total: $(wc -l < "$REASON_FILE"), \"$REASON\""
}
lockedby() {