| 572 | } |
| 573 | |
| 574 | void LivestatusQuery::ExecuteCommandHelper(const WaitGroup::Ptr& producer, const Stream::Ptr& stream) |
| 575 | { |
| 576 | { |
| 577 | std::unique_lock<std::mutex> lock(l_QueryMutex); |
| 578 | |
| 579 | l_ExternalCommands++; |
| 580 | } |
| 581 | |
| 582 | Log(LogNotice, "LivestatusQuery") |
| 583 | << "Executing command: " << m_Command; |
| 584 | ExternalCommandProcessor::Execute(producer, m_Command); |
| 585 | SendResponse(stream, LivestatusErrorOK, ""); |
| 586 | } |
| 587 | |
| 588 | void LivestatusQuery::ExecuteErrorHelper(const Stream::Ptr& stream) |
| 589 | { |