mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
124c80beab
commit
72facb1be0
@ -49,9 +49,11 @@ void DbConnection::OnConfigLoaded(void)
|
||||
Value categories = GetCategories();
|
||||
|
||||
//TODO: Remove 'cat1 | cat2' notation in 2.6
|
||||
if (categories.IsNumber())
|
||||
if (categories.IsNumber()) {
|
||||
SetCategoryFilter(categories);
|
||||
else
|
||||
Log(LogWarning, "DbConnection")
|
||||
<< "Specifying flags using '|' for 'categories' is deprecated. This functionality will be removed in 2.6.0. Please use an array.";
|
||||
} else
|
||||
SetCategoryFilter(FilterArrayToInt(categories, DbQuery::GetCategoryFilterMap(), DbCatEverything));
|
||||
|
||||
if (!GetEnableHa()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user