mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 11:56:52 +08:00
Added log statement for queue write failure
This commit is contained in:
@@ -277,7 +277,10 @@ bool writeToQueue(std::string jsonResult)
|
|||||||
int id = client.put(jsonResult);
|
int id = client.put(jsonResult);
|
||||||
|
|
||||||
if (id <= 0)
|
if (id <= 0)
|
||||||
|
{
|
||||||
|
LOG4CPLUS_ERROR(logger, "Failed to write data to queue");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
LOG4CPLUS_INFO(logger, "put job id: " << id );
|
LOG4CPLUS_INFO(logger, "put job id: " << id );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user