Shorten debug output
This commit is contained in:
parent
1b84553405
commit
bf158dc2d9
|
@ -117,9 +117,8 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||||
# Handle some exceptional cases
|
# Handle some exceptional cases
|
||||||
if health_delta > 0:
|
if health_delta > 0:
|
||||||
if coordinator_state in ["takeover", "relinquish"]:
|
if coordinator_state in ["takeover", "relinquish"]:
|
||||||
# This scenario occurrs if this plugin run catches a node transitioning from primary to secondary coordinator
|
# This scenario occurrs if this plugin run catches a node transitioning from primary to
|
||||||
|
# secondary coordinator. We can ignore it.
|
||||||
# We can ignore it.
|
|
||||||
health_delta = 0
|
health_delta = 0
|
||||||
message = "Patroni PostgreSQL error reported but currently transitioning coordinator state; ignoring."
|
message = "Patroni PostgreSQL error reported but currently transitioning coordinator state; ignoring."
|
||||||
|
|
||||||
|
|
|
@ -571,12 +571,7 @@ class MonitoringInstance(object):
|
||||||
|
|
||||||
if self.config["debug"]:
|
if self.config["debug"]:
|
||||||
self.logger.out(
|
self.logger.out(
|
||||||
f"Entries for fault check {fault_type}:",
|
f"Entries for fault check {fault_type}: {dumps(entries)}",
|
||||||
state="d",
|
|
||||||
)
|
|
||||||
for line in dumps(entries, indent=2).split("\n"):
|
|
||||||
self.logger.out(
|
|
||||||
line,
|
|
||||||
state="d",
|
state="d",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue