]> granicus.if.org Git - icinga2/commitdiff
Deprecation warning should include object type and name
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 28 Jul 2016 15:43:50 +0000 (17:43 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 28 Jul 2016 15:43:50 +0000 (17:43 +0200)
fixes #12240

lib/db_ido/dbconnection.cpp

index 2b48fcc892039f1c12c1a7f119b70e8ea97a841f..170288cf8b697126bf2698ab0d2ed8b406cec030 100644 (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));