ctdb-logging: Really make NOTICE the default debug level
commit51d0445a7d7401699cf65d648ef007814258fb54
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 10 Feb 2023 06:57:13 +0000 (10 17:57 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 10 Jul 2023 14:21:30 +0000 (10 14:21 +0000)
treebe7050f23a59b20573fa6531e551ca51ee42ed21
parentedad945339f6401b2566efddd33f47195e2637c3
ctdb-logging: Really make NOTICE the default debug level

NOTICE level debug messages in common/run_event.c are not logged by
default.

Currently eventd ends up using ERROR, since this is specified as
LOGGING_LOG_LEVEL_DEFAULT.  It doesn't inherit the debug level from
ctdbd and only uses NOTICE level when interactive.

Change the real logging default to NOTICE and use it everywhere.

Followups might be:

* Remove the default_log_level argument to logging_conf_init()
* Kick eventd to update debug level when "ctdb setdebug" is used

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/logging_conf.c
ctdb/server/ctdb_config.c
ctdb/tests/UNIT/cunit/config_test_001.sh
ctdb/tests/UNIT/cunit/config_test_002.sh