projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
df plugin: Implement the "ReportReserved" option.
[collectd.git]
/
src
/
mysql.c
diff --git
a/src/mysql.c
b/src/mysql.c
index
f243c50
..
1048511
100644
(file)
--- a/
src/mysql.c
+++ b/
src/mysql.c
@@
-363,7
+363,11
@@
static MYSQL *getconnection (mysql_database_t *db)
int err;
if ((err = mysql_ping (db->con)) != 0)
{
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
db->state = 0;
}
else