summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b6e4d8)
raw | patch | inline | side by side (parent: 9b6e4d8)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 1 Sep 2009 20:49:47 +0000 (22:49 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 1 Sep 2009 20:49:47 +0000 (22:49 +0200) |
src/mysql.c | patch | blob | history |
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