From: Michael Friedrich Date: Thu, 28 Jul 2016 15:43:50 +0000 (+0200) Subject: Deprecation warning should include object type and name X-Git-Tag: v2.5.0~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcfda534b15f7b8a5bc5843f2e1ac56c6abd1b14;p=icinga2 Deprecation warning should include object type and name fixes #12240 --- 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));