mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-23 17:57:54 +02:00
parent_affecting_logging: a zone affects everything in it
This commit is contained in:
parent
fff2cd8089
commit
844bcd7508
@ -66,7 +66,7 @@ abstract class ConfigObject : ConfigObjectBase < ConfigType
|
||||
return shortName;
|
||||
}}}
|
||||
};
|
||||
[config, no_user_modify] name(Zone) zone (ZoneName);
|
||||
[config, no_user_modify, parent_affecting_logging] name(Zone) zone (ZoneName);
|
||||
[config, no_user_modify] String package;
|
||||
[config, get_protected, no_user_modify] Array::Ptr templates;
|
||||
[config, no_storage, no_user_modify] Dictionary::Ptr source_location {
|
||||
|
@ -26,6 +26,12 @@ void Endpoint::OnAllConfigLoaded()
|
||||
"' does not belong to a zone.", GetDebugInfo()));
|
||||
}
|
||||
|
||||
void Endpoint::GetParentsAffectingLogging(std::vector<ConfigObject::Ptr>& output) const
|
||||
{
|
||||
ObjectImpl<Endpoint>::GetParentsAffectingLogging(output);
|
||||
output.emplace_back(GetZone());
|
||||
}
|
||||
|
||||
void Endpoint::SetCachedZone(const Zone::Ptr& zone)
|
||||
{
|
||||
if (m_Zone)
|
||||
|
@ -51,6 +51,7 @@ public:
|
||||
|
||||
protected:
|
||||
void OnAllConfigLoaded() override;
|
||||
void GetParentsAffectingLogging(std::vector<ConfigObject::Ptr>& output) const override;
|
||||
|
||||
private:
|
||||
mutable std::mutex m_ClientsLock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user