mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 13:14:56 +01:00
Added PID in traces
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
trace()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
echo "$(date -Is) ${1}" 1>&2
|
||||
echo "$(date -Is) $$ ${1}" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
trace_rc()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
echo "$(date -Is) Last return code: ${1}" 1>&2
|
||||
echo "$(date -Is) $$ Last return code: ${1}" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user