]> git.ipfire.org Git - oddments/collecty.git/commitdiff
latency: Improve logging when host could not be reached
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Aug 2015 23:00:19 +0000 (01:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Aug 2015 23:00:19 +0000 (01:00 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_collectymodule.c

index c13ca69d05595216135ef16eae89f868b0fffa97..d42f8fd13e34780d49135ba4f40459240fc23845 100644 (file)
@@ -553,7 +553,7 @@ static PyObject* Ping_ping(PingObject* self, PyObject* args, PyObject* kwds) {
        }
 
        if (self->stats.packets_rcvd == 0) {
-               PyErr_Format(PyExc_PingError, "No replies received");
+               PyErr_Format(PyExc_PingError, "No replies received from %s", self->host);
                return NULL;
        }