Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctdb: Leave CTDB log levels at their original defaults #139

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sambacc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [])
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ctdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Loading