1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

ctdb-scripts: Support script logging to stderr

Logging in statd-callout tests is currently useless.  This will
provide a way of seeing errors in those tests.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2023-07-16 20:52:54 +10:00 committed by Amitay Isaacs
parent 0ac9413735
commit ef15a34d5d

View File

@ -95,6 +95,13 @@ script_log()
shift
case "$CTDB_LOGGING" in
file:)
if [ -n "$*" ] ; then
echo "$*"
else
cat
fi >&2
;;
file:* | "")
if [ -n "$CTDB_LOGGING" ]; then
_file="${CTDB_LOGGING#file:}"