]> granicus.if.org Git - icinga2/commitdiff
Improve error message for socket errors in Livestatus
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 12:58:21 +0000 (14:58 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 12:58:50 +0000 (14:58 +0200)
fixes #10079

lib/livestatus/livestatusquery.cpp

index 71ad4eb5c7b40f9d25319eaf130b308209dfc4ad..7c69663cc93b3e63f51a495efe4e7c89cd185b9f 100644 (file)
@@ -675,7 +675,7 @@ void LivestatusQuery::SendResponse(const Stream::Ptr& stream, int code, const St
                try {
                        stream->Write(data.CStr(), data.GetLength());
                } catch (const std::exception&) {
-                       Log(LogCritical, "LivestatusQuery", "Cannot write to TCP socket.");
+                       Log(LogCritical, "LivestatusQuery", "Cannot write query response to socket.");
                }
        }
 }