diff --git a/src/mysql.c b/src/mysql.c
index f243c5001f912d38c34db31caa4f60130a85e4ed..1048511ce568cb266413519e9c56709ef60092b3 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
int err;
if ((err = mysql_ping (db->con)) != 0)
{
- WARNING ("mysql_ping failed: %s", mysql_error (db->con));
+ WARNING ("mysql_ping failed for %s: %s",
+ (db->instance != NULL)
+ ? db->instance
+ : "<legacy>",
+ mysql_error (db->con));
db->state = 0;
}
else