scripts: Fix script_log() regression
authorMartin Schwenke <martin@meltin.net>
Tue, 23 Apr 2013 03:56:15 +0000 (13:56 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 6 May 2013 05:43:16 +0000 (15:43 +1000)
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 <martin@meltin.net>
(This used to be ctdb commit 9dee4c84273633b9ad82e94dabbf0e6f86edbcef)

ctdb/config/functions

index b4450c38b5e425081a6c981ab9b439f3c7c0158d..13d4327754ca75635d4337e8eabebdbfbc8d8f9c 100755 (executable)
@@ -83,7 +83,7 @@ script_log ()
     esac
 
     if $_using_syslog ; then
-       logger -t "ctdbd" "${_tag}: $*"
+       logger -t "ctdbd: ${_tag}" $*
     else
        {
            if [ -n "$*" ] ; then