Files
cyphernode/pycoin_docker/script/trace.sh
2018-10-12 13:21:25 -04:00

16 lines
187 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
}