From 9c042befc1463d3878a38537ee7ff95034612fe8 Mon Sep 17 00:00:00 2001 From: "Simental Magana, Marcos" Date: Wed, 27 Jan 2016 15:48:36 -0600 Subject: [PATCH] Improve debug messages for the mariadb setup Signed-off-by: Simental Magana, Marcos --- clearstack/modules/mariadb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clearstack/modules/mariadb.py b/clearstack/modules/mariadb.py index be424a4..d036171 100644 --- a/clearstack/modules/mariadb.py +++ b/clearstack/modules/mariadb.py @@ -34,7 +34,7 @@ class MariaDB: swupd_client.install("database-mariadb") def start_server(self): - LOG.debug("starting services") + LOG.debug("starting mariadb service") util.run_command("systemctl enable mariadb") util.run_command("systemctl restart mariadb") @@ -49,10 +49,11 @@ class MariaDB: character-set-server = utf8 bind-address = 0.0.0.0 """ + LOG.debug("configuring mariadb options in '{0}'".format(config_file)) util.write_config(config_file, config) def secure_installation(self, user, password): - LOG.debug("secure installation mariadb") + LOG.debug("calling mariadb secure installation") try: """ test if mysql has a password """ util.run_command("mysql -u{0} -e \"\"".format(user), debug=False) @@ -90,7 +91,7 @@ class MariaDB: return sys.exit(1) def setup_database(self, database, user, password): - LOG.debug("setting up database") + LOG.debug("setting up '{0}' database".format(database)) mariadb_user = CONF["CONFIG_MARIADB_USER"] mariadb_pw = CONF["CONFIG_MARIADB_PW"] util.run_command("mysql -u{0} -p{1} -e"