From dcfda534b15f7b8a5bc5843f2e1ac56c6abd1b14 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 28 Jul 2016 17:43:50 +0200 Subject: [PATCH] Deprecation warning should include object type and name fixes #12240 --- lib/db_ido/dbconnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index 2b48fcc89..170288cf8 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -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)); -- 2.50.1