diff --git a/sambacc/config.py b/sambacc/config.py index bbb38f9..0ec0a48 100644 --- a/sambacc/config.py +++ b/sambacc/config.py @@ -312,8 +312,8 @@ def ctdb_config(self) -> dict[str, str]: ctdb.setdefault("cluster_meta_uri", CLUSTER_META_JSON) ctdb.setdefault("nodes_path", CTDB_NODES_PATH) ctdb.setdefault("recovery_lock", CTDB_RECLOCK) - ctdb.setdefault("log_level", "DEBUG") - ctdb.setdefault("script_log_level", "DEBUG") + ctdb.setdefault("log_level", "NOTICE") + ctdb.setdefault("script_log_level", "ERROR") ctdb.setdefault("realtime_scheduling", "false") # this whole thing really needs to be turned into a real object type ctdb.setdefault("public_addresses", []) diff --git a/tests/test_ctdb.py b/tests/test_ctdb.py index a151e29..61247c9 100644 --- a/tests/test_ctdb.py +++ b/tests/test_ctdb.py @@ -438,7 +438,8 @@ def test_ensure_ctdb_conf(tmpdir): ctdb.ensure_ctdb_conf(iconfig=cfg.get("ctdb1"), path=path) with open(path, "r") as fh: data = fh.read() - assert "DEBUG" in data + assert "NOTICE" in data + assert "ERROR" in data assert "/var/lib/ctdb/shared/RECOVERY" in data