From bbd0ed0e2979a8f7f31d2170f0a1d99863c70c99 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 23 Apr 2013 13:56:15 +1000 Subject: scripts: Fix script_log() regression 5940a2494e9e43a83f2bca098bd04dfc1a8f2e93 makes script_log() always pass a message to logger, so script_log() can no longer log stdin. Put all the tag fu in the actual tag so the message argument is empty if no message was passed. Signed-off-by: Martin Schwenke (This used to be ctdb commit 9dee4c84273633b9ad82e94dabbf0e6f86edbcef) --- ctdb/config/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctdb') diff --git a/ctdb/config/functions b/ctdb/config/functions index b4450c38b5e..13d4327754c 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -83,7 +83,7 @@ script_log () esac if $_using_syslog ; then - logger -t "ctdbd" "${_tag}: $*" + logger -t "ctdbd: ${_tag}" $* else { if [ -n "$*" ] ; then -- cgit