Logging: Map TEVENT_DEBUG_FATAL to DEBUG_CRIT
authorMartin Schwenke <martin@meltin.net>
Thu, 27 Sep 2012 23:39:12 +0000 (09:39 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Oct 2012 00:31:01 +0000 (10:31 +1000)
commit5e5a2df00c383c03e136d0c49dd586d556a25a0e
treef9d993e8e4429ca830af451c140ee7734d7c5086
parente62756004d3c61696ffd706442bf9cbfcfbf41f5
Logging: Map TEVENT_DEBUG_FATAL to DEBUG_CRIT

This is currently mapped to DEBUG_EMERG.  CTDB really has no business
logging anything at EMERG level since the whole system is not about to
abort or catch fire.  EMERG causes the message to appear on the
console and on every terminal.  That's a bit overzealous!

There would be very few situations where logs are being filtered at
level below ERROR, so CRIT should certainly suffice.

The trigger for this was curious messages saying "No event for <n>
seconds!" logged in a user's terminal.

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_logging.c