]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: add debug message for recv() error
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 Oct 2015 09:57:54 +0000 (11:57 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 Oct 2015 09:59:13 +0000 (11:59 +0200)
client.c

index 8dba0c6a654716a20a3865a28a688835ccb75af0..cd0977c746b0ab4b3eb67ef4131110bc12699bb5 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1366,6 +1366,7 @@ submit_request(CMD_Request *request, CMD_Reply *reply)
       if (recv_status < 0) {
         /* If we get connrefused here, it suggests the sendto is
            going to a dead port */
+        DEBUG_LOG(LOGF_Client, "Could not receive : %s", strerror(errno));
 
         n_attempts++;
         if (n_attempts > max_retries) {