projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3a6a25
)
Updated change from debug to error
author
elieyal
<17270807+elieyal@users.noreply.github.com>
Tue, 26 Jun 2018 10:01:04 +0000
(13:01 +0300)
committer
GitHub
<noreply@github.com>
Tue, 26 Jun 2018 10:01:04 +0000
(13:01 +0300)
As suggest by @rpv-tomsk
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
f2e4b47
..
d602dfc
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1691,7
+1691,7
@@
static int network_bind_socket_to_addr(sockent_t *se,
if (se->data.client.bind_addr == NULL)
return 0;
if (se->data.client.bind_addr == NULL)
return 0;
- DEBUG("fd %i: bind socket to address", se->data.client.fd);
+ DEBUG("
network_plugin:
fd %i: bind socket to address", se->data.client.fd);
char pbuffer[64];
if (ai->ai_family == AF_INET) {
char pbuffer[64];
if (ai->ai_family == AF_INET) {
@@
-1701,8
+1701,8
@@
static int network_bind_socket_to_addr(sockent_t *se,
DEBUG("network_plugin: binding client socket to ipv4 address: %s", pbuffer);
if (bind(se->data.client.fd, (struct sockaddr *)addr, sizeof(*addr)) ==
-1) {
DEBUG("network_plugin: binding client socket to ipv4 address: %s", pbuffer);
if (bind(se->data.client.fd, (struct sockaddr *)addr, sizeof(*addr)) ==
-1) {
- ERROR("network
_plugin: failed to bind client socket (ipv4)
: %s",
- STRERRNO);
+ ERROR("network
plugin: failed to bind client socket (ipv4) to %s
: %s",
+
pbuffer,
STRERRNO);
return -1;
}
} else if (ai->ai_family == AF_INET6) {
return -1;
}
} else if (ai->ai_family == AF_INET6) {
@@
-1712,8
+1712,8
@@
static int network_bind_socket_to_addr(sockent_t *se,
DEBUG("network_plugin: binding client socket to ipv6 address: %s", pbuffer);
if (bind(se->data.client.fd, (struct sockaddr *)addr, sizeof(*addr)) ==
-1) {
DEBUG("network_plugin: binding client socket to ipv6 address: %s", pbuffer);
if (bind(se->data.client.fd, (struct sockaddr *)addr, sizeof(*addr)) ==
-1) {
- ERROR("network
_plugin: failed to bind client socket (ipv6)
: %s",
- STRERRNO);
+ ERROR("network
plugin: failed to bind client socket (ipv6) to %s
: %s",
+
pbuffer,
STRERRNO);
return -1;
}
}
return -1;
}
}