[icinga-checkins] icinga.org: icinga2/master: Deprecation warning should include object type and name

git at icinga.org git at icinga.org
Thu Jul 28 17:44:11 CEST 2016


Module: icinga2
Branch: master
Commit: dcfda534b15f7b8a5bc5843f2e1ac56c6abd1b14
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=dcfda534b15f7b8a5bc5843f2e1ac56c6abd1b14

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Jul 28 17:43:50 2016 +0200

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 2b48fcc..170288c 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));
 



More information about the icinga-checkins mailing list