summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0568fc5)
raw | patch | inline | side by side (parent: 0568fc5)
author | Florian Forster <octo@collectd.org> | |
Mon, 3 Sep 2012 06:53:45 +0000 (08:53 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 3 Sep 2012 06:53:45 +0000 (08:53 +0200) |
src/memcached.c | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index 59973b0b09bf32ef374e70d35443621acc42853b..a09f45ec6dae1a2e537fe986af7677f4130bd662 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
if (fd < 0)
{
char errbuf[1024];
- ERROR ("memcached: memcached_connect_unix: socket(2) failed: %s",
+ ERROR ("memcached plugin: memcached_connect_unix: socket(2) failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
return (-1);
}
if (status != 0)
{
char errbuf[1024];
- ERROR ("memcached: memcached_connect_inet: getaddrinfo(%s,%s) failed: %s",
+ ERROR ("memcached plugin: memcached_connect_inet: "
+ "getaddrinfo(%s,%s) failed: %s",
host, port,
(status == EAI_SYSTEM)
? sstrerror (errno, errbuf, sizeof (errbuf))
if (fd < 0)
{
char errbuf[1024];
- WARNING ("memcached: memcached_connect_inet: socket(2) failed: %s",
+ WARNING ("memcached plugin: memcached_connect_inet: "
+ "socket(2) failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
continue;
}
@@ -168,7 +170,8 @@ static int memcached_query_daemon (char *buffer, size_t buffer_size, memcached_t
fd = memcached_connect (st);
if (fd < 0) {
- ERROR ("memcached: Could not connect to daemon.");
+ ERROR ("memcached plugin: Instance \"%s\" could not connect to daemon.",
+ st->name);
return -1;
}