chore: update notification template

This commit is contained in:
2024-12-07 17:36:05 +01:00
parent 156f22f1e5
commit 8e58d7a4c3
7 changed files with 147 additions and 36 deletions

View File

@@ -72,6 +72,8 @@ func testDatabaseConnection(db *dbConfig) {
return
}
utils.Info("Connecting to %s database ...", db.dbName)
// Set database name for notification error
utils.DatabaseName = db.dbName
cmd := exec.Command("mysql", "-h", db.dbHost, "-P", db.dbPort, "-u", db.dbUserName, db.dbName, "-e", "quit")
// Capture the output
var out bytes.Buffer