diff --git a/src/daemon.cpp b/src/daemon.cpp index 9ce49c4..051308d 100644 --- a/src/daemon.cpp +++ b/src/daemon.cpp @@ -277,7 +277,10 @@ bool writeToQueue(std::string jsonResult) int id = client.put(jsonResult); if (id <= 0) + { + LOG4CPLUS_ERROR(logger, "Failed to write data to queue"); return false; + } LOG4CPLUS_INFO(logger, "put job id: " << id );