Cleanup of logging messages/spamming
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 3 May 2011 22:54:02 +0000 (08:54 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 4 May 2011 00:42:26 +0000 (10:42 +1000)
commit572031ff6827371ce34f243ad5e2a723e2320c67
tree156fc055a865fc65021b75f43081a0f1409e8e64
parentdcbb31f9fa9a59c2a795cf48d1adf90a47421ba2
Cleanup of logging messages/spamming

Reduce an infomational message about not performing ip reallocation
from NOTICE(the default) to INFO.
These messages are normal during startup or when stopped/banned when
we will be in recovery mode for a while.

Remove a messager in the loop waiting for initial startup to complete about
the generation being invalid. It is always invalid at this stage before we have
finished initial recovery.

Rate-limit the informational messages for CTDB_WAIT_UNTIL_RECOVERED
so that we only print them once per second for the first 60 seconds and after that only once per 10 minutes.
These messages are normal during startup, but we should not be logging them every second for cases where we will remain in recovery mode during startup for an extended period of time.
Such as if suspended or permabanned.

CQ S1023302
server/ctdb_monitor.c
server/ctdb_recoverd.c