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:
parent
0ac9413735
commit
ef15a34d5d
@ -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:}"
|
||||
|
Loading…
Reference in New Issue
Block a user