mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue