mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-18 18:54:21 +01:00
First draft of the pub/sub notifier
This commit is contained in:
15
notifier_docker/script/trace.sh
Normal file
15
notifier_docker/script/trace.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
}
|
||||
Reference in New Issue
Block a user