This commit is contained in:
Dave Horton
2020-02-15 22:04:16 -05:00
parent 4df6f1e115
commit 3d13fa824c
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -10,7 +10,13 @@ const pool = mysql.createPool({
pool.getConnection((err, conn) => {
if (err) return console.error(err, 'Error testing pool');
conn.ping((err) => {
if (err) return console.error(err, `Error pinging mysql at ${JSON.stringify(config.get('mysql'))}`);
if (err) return console.error(err, `Error pinging mysql at ${JSON.stringify({
host: process.env.JAMBONES_MYSQL_HOST,
user: process.env.JAMBONES_MYSQL_USER,
password: process.env.JAMBONES_MYSQL_PASSWORD,
database: process.env.JAMBONES_MYSQL_DATABASE,
connectionLimit: process.env.JAMBONES_MYSQL_CONNECTION_LIMIT || 10
})}`);
});
});