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