X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnetwork.c;h=22e911a87b8e4d4fe89d805abc9c9559ce2463c6;hb=b54b5ebf3012f180e87000ef45c6cd8387de822d;hp=54f9bfa3b43456dd1d02fd0b2b1104ca5d211a86;hpb=601abecb59b6041e84f11877345a98efba7b651b;p=collectd.git diff --git a/src/network.c b/src/network.c index 54f9bfa3..22e911a8 100644 --- a/src/network.c +++ b/src/network.c @@ -215,7 +215,11 @@ int network_create_socket (const char *node, const char *service) DBG ("node = %s, service = %s", node, service); if (operating_mode == MODE_LOCAL || operating_mode == MODE_LOG) + { + syslog (LOG_WARNING, "network_create_socket: There is no point opening a socket when you are in mode `%s'.", + operating_mode == MODE_LOCAL ? "Local" : "Log"); return (-1); + } socklist_tail = socklist_head; while ((socklist_tail != NULL) && (socklist_tail->next != NULL))