Skip to content

Commit

Permalink
print contents of my.innodb_recovery.cnf during failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegriffin authored Feb 13, 2024
1 parent 80805b5 commit 698ff24
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def __call__(self, event, snapshot_fsm, snapshot):
LOG.info("%s has stopped", mysqld_exe)

if mysqld.returncode != 0:
LOG.error("Configuration file was:")
LOG.error("#######################")
for line in open(os.path.join(mycnf_path), "r"):
LOG.error("%s", line.rstrip())
LOG.error("#######################")
datadir = self.mysqld_config["datadir"]
for line in open(os.path.join(datadir, "innodb_recovery.log"), "r"):
LOG.error("%s", line.rstrip())
Expand Down

0 comments on commit 698ff24

Please sign in to comment.