Files
cyphernode/pycoin_docker/script/trace.sh
2019-01-10 10:05:24 -05:00

16 lines
193 B
Bash

#!/bin/sh
trace()
{
if [ -n "${TRACING}" ]; then
echo "$(date -Is) $$ ${1}" 1>&2
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "$(date -Is) $$ Last return code: ${1}" 1>&2
fi
}