Mariadb: Add logging output to wsrep-recover on startup

This PS adds logging output to the wsrep-recover function in the
mariadb startup script.

Change-Id: I98ea214852a0b54440b1ceeea363017397afcb52
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-04-01 11:24:02 -05:00 committed by Pete Birley
parent 8673bdda53
commit 4031db390c

View File

@ -503,6 +503,8 @@ def update_grastate_on_restart():
stderr=subprocess.PIPE)
out, err = wsrep_recover.communicate()
for item in err.split("\n"):
logger.info(
"Recovering wsrep position: {0}".format(item))
if "WSREP: Recovered position:" in item:
line = item.strip().split()
wsrep_rec_pos = line[-1].split(':')[-1]