mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-19 19:54:34 +02:00
parent
bc4c4098f0
commit
e6128a0a96
@ -132,9 +132,17 @@ void LivestatusListener::ClientThreadProc(const Socket::Ptr& client)
|
||||
break;
|
||||
}
|
||||
|
||||
Query::Ptr query = make_shared<Query>(lines, GetCompatLogPath());
|
||||
if (!query->Execute(stream))
|
||||
break;
|
||||
try {
|
||||
Query::Ptr query = make_shared<Query>(lines, GetCompatLogPath());
|
||||
if (!query->Execute(stream))
|
||||
break;
|
||||
} catch (const std::exception& ex) {
|
||||
std::ostringstream info;
|
||||
info << "Exception thrown while running livestatus query: " << std::endl
|
||||
<< boost::diagnostic_information(ex);
|
||||
Log(LogCritical, "livestatus", info.str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
2
test/livestatus/queries/custom/scrambled
Normal file
2
test/livestatus/queries/custom/scrambled
Normal file
@ -0,0 +1,2 @@
|
||||
D
|
||||
|
Loading…
x
Reference in New Issue
Block a user