[asterisk-scf-commits] asterisk-scf/release/servicediscovery.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Sep 22 13:05:45 CDT 2011
branch "master" has been updated
via e5c490b5aedc277148166ce0b7c2445c276bc610 (commit)
from 46cd353e6e9c738ca42c9aa24913bc95ad4f3699 (commit)
Summary of changes:
src/ServiceManagement.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit e5c490b5aedc277148166ce0b7c2445c276bc610
Author: Ken Hunt <ken.hunt at digium.com>
Date: Thu Sep 22 13:05:42 2011 -0500
Made some of the debug print easier to decipher.
diff --git a/src/ServiceManagement.cpp b/src/ServiceManagement.cpp
index ab08c00..2beec01 100644
--- a/src/ServiceManagement.cpp
+++ b/src/ServiceManagement.cpp
@@ -302,7 +302,7 @@ bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params
// Is this the wrong category?
if (mStateItem->params->category != params->category)
{
- lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false (different categories)\n";
+ lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false. Different category=" + mStateItem->params->category;
callback->result(false);
return false;
@@ -321,6 +321,8 @@ bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params
}
// Ignore the id and treat this as a wildcard search.
+
+ lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = true. Category match explicit, wildcard match service.";
callback->result(true);
return true;
}
@@ -328,7 +330,7 @@ bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params
// Wrong service?
if (mStateItem->params->service != params->service)
{
- lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false (different services)\n";
+ lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false. Different service =" + mStateItem->params->service ;
callback->result(false);
return false;
}
@@ -339,7 +341,7 @@ bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params
// Wrong instance?
if (mStateItem->params->id != params->id)
{
- lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false (different id)\n";
+ lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = false. Different id = " + mStateItem->params->id;
callback->result(false);
return false;
}
@@ -354,6 +356,7 @@ bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params
// If we get here we have a match on service and id.
// (and category, if one was passed in.)
+ lg(Debug) << " ...isSupported" << debugPrintParams(params) + " = true";
callback->result(true);
return true;
}
-----------------------------------------------------------------------
--
asterisk-scf/release/servicediscovery.git
More information about the asterisk-scf-commits
mailing list