Skip to content

Commit

Permalink
Revert PR #713 (#744)
Browse files Browse the repository at this point in the history
This change is causing an untenable amount of noise in log output. Backing out for now. A better solution to the problem of logging service dependency errors is needed.

Signed-off-by: The MathWorks, Inc. <jdicleme@mathworks.com>
  • Loading branch information
jeffdiclemente committed Oct 10, 2022
1 parent 22c8387 commit 13ca108
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 173 deletions.
1 change: 0 additions & 1 deletion compendium/DeclarativeServices/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ set(_declarativeservices_tests
TestRegistrationManager.cpp
TestSCRBundleExtension.cpp
TestServiceComponentRuntimeImpl.cpp
TestServiceDependencyErrorLogging.cpp
TestServiceMetadataParserV1.cpp
TestSetConfiguration.cpp
TestSingletonComponentConfiguration.cpp
Expand Down

This file was deleted.

17 changes: 0 additions & 17 deletions framework/src/service/ServiceListeners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,23 +446,6 @@ void ServiceListeners::GetMatchingServiceListeners(const ServiceEvent& evt,
const LDAPExpr& ldapExpr = sse.GetLDAPExpr();
if (ldapExpr.IsNull() || ldapExpr.Evaluate(props, false)) {
set.insert(sse);
} else if (evt.GetType() == ServiceEvent::SERVICE_REGISTERED) {
// get the props key and value for logging
std::string propsKeyValues{};

auto key = props->Keys_unlocked();
for (auto k : key) {
auto val = props->Value_unlocked(k).first.ToString();
propsKeyValues += k + " : " + val + ", ";
}

const std::string msg =
"Service listener matching LDAP filter could "
"not be found using LDAP filter: " +
sse.GetFilter() + ". Please verify the LDAP filter value in service properties: " + "{" + propsKeyValues + "}";

coreCtx->logger->Log(
cppmicroservices::logservice::SeverityLevel::LOG_DEBUG, msg);
}
}

Expand Down

0 comments on commit 13ca108

Please sign in to comment.