mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Cluster: Delete object message should log that
Atm it is a copy-paste error and irritates during debugging. Coming from my analysis of existing cluster messages.
This commit is contained in:
parent
b1442645ce
commit
b16c22448e
@ -199,7 +199,7 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin
|
|||||||
Value ApiListener::ConfigDeleteObjectAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
|
Value ApiListener::ConfigDeleteObjectAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
|
||||||
{
|
{
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogNotice, "ApiListener")
|
||||||
<< "Received update for object: " << JsonEncode(params);
|
<< "Received delete for object: " << JsonEncode(params);
|
||||||
|
|
||||||
/* check permissions */
|
/* check permissions */
|
||||||
ApiListener::Ptr listener = ApiListener::GetInstance();
|
ApiListener::Ptr listener = ApiListener::GetInstance();
|
||||||
@ -209,7 +209,7 @@ Value ApiListener::ConfigDeleteObjectAPIHandler(const MessageOrigin::Ptr& origin
|
|||||||
|
|
||||||
if (!listener->GetAcceptConfig()) {
|
if (!listener->GetAcceptConfig()) {
|
||||||
Log(LogWarning, "ApiListener")
|
Log(LogWarning, "ApiListener")
|
||||||
<< "Ignoring config update. '" << listener->GetName() << "' does not accept config.";
|
<< "Ignoring config delete. '" << listener->GetName() << "' does not accept config.";
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,14 +217,14 @@ Value ApiListener::ConfigDeleteObjectAPIHandler(const MessageOrigin::Ptr& origin
|
|||||||
|
|
||||||
if (!endpoint) {
|
if (!endpoint) {
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogNotice, "ApiListener")
|
||||||
<< "Discarding 'config update object' message from '" << origin->FromClient->GetIdentity() << "': Invalid endpoint origin (client not allowed).";
|
<< "Discarding 'config delete object' message from '" << origin->FromClient->GetIdentity() << "': Invalid endpoint origin (client not allowed).";
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* discard messages if the sender is in a child zone */
|
/* discard messages if the sender is in a child zone */
|
||||||
if (!Zone::GetLocalZone()->IsChildOf(endpoint->GetZone())) {
|
if (!Zone::GetLocalZone()->IsChildOf(endpoint->GetZone())) {
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogNotice, "ApiListener")
|
||||||
<< "Discarding 'config update object' message from '"
|
<< "Discarding 'config delete object' message from '"
|
||||||
<< origin->FromClient->GetIdentity() << "'.";
|
<< origin->FromClient->GetIdentity() << "'.";
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user