ctdb-daemon: Update logging for flag changes
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Jul 2021 01:29:38 +0000 (11:29 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 9 Sep 2021 01:46:49 +0000 (01:46 +0000)
commitb6d25d079e30919457cacbfbbfd670bf88295a9c
tree4cb3c90a790c7c8af07ecdaefc39885ab0fc6baf
parenteec44e286250a6ee7b5c42d85d632bdc300a409f
ctdb-daemon: Update logging for flag changes

When flags change, promote the message to NOTICE level and switch the
message to the style that is currently generated by
ctdb-recoverd.c:monitor_handler().  This will allow monitor_handler()
to go away in future.

Drop logging when flags do not change.  The recovery master now logs
when it pushes flags for a node, so the lack of a corresponding
"changed flags" message here indicates that no update was required.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14784
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_monitor.c