Deprecation warning should include object type and name

fixes #12240
This commit is contained in:
Michael Friedrich 2016-07-28 17:43:50 +02:00
parent d7903ba800
commit dcfda534b1
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ void DbConnection::OnConfigLoaded(void)
if (categories.IsNumber()) {
SetCategoryFilter(categories);
Log(LogWarning, "DbConnection")
<< "Specifying flags using '|' for 'categories' is deprecated. This functionality will be removed in 2.6.0. Please use an array.";
<< "Specifying flags using '|' for 'categories' for object '" << GetName()
<< "' of type '" << GetType()->GetName() << "'"
<< " is deprecated. This functionality will be removed in 2.6.0. Please use an array.";
} else
SetCategoryFilter(FilterArrayToInt(categories, DbQuery::GetCategoryFilterMap(), DbCatEverything));