diff options
author | Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org> | 2016-09-28 06:35:38 -0700 |
---|---|---|
committer | Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org> | 2016-09-28 06:35:38 -0700 |
commit | 0b8e04d293612d119227809fc678c90a39a51d3d (patch) | |
tree | da6ab113d6424db97861293904ca3b06298209af | |
parent | c3f2eac8a46b8a69f62a449c94aa18d1fef8ffe0 (diff) | |
download | audiomanager-0b8e04d293612d119227809fc678c90a39a51d3d.tar.gz |
removed setting of logging context in CAPI wrapper
Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
-rw-r--r-- | AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp b/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp index 8d2b82e..2aa8370 100644 --- a/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp +++ b/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp @@ -47,10 +47,8 @@ CAmCommonAPIWrapper::CAmCommonAPIWrapper(CAmSocketHandler* socketHandler, const { assert(NULL!=socketHandler); //Get the runtime - CommonAPI::Runtime::setProperty("LogContext", "AMCAPI"); mRuntime = CommonAPI::Runtime::get(); assert(NULL!=mRuntime); - logInfo("CommonAPI runtime has been loaded! Default Binding is", mRuntime->getDefaultBinding()); //Create the context if(applicationName.size()) @@ -58,7 +56,7 @@ CAmCommonAPIWrapper::CAmCommonAPIWrapper(CAmSocketHandler* socketHandler, const else mContext = std::make_shared<CommonAPI::MainLoopContext>(); assert(NULL!=mContext); - logInfo("CommonAPI main loop context with name '", mContext->getName(), "' has been created!"); + logInfo(__func__,"CommonAPI main loop context with name '", mContext->getName(), "' has been created!"); //Make subscriptions mDispatchSourceListenerSubscription = mContext->subscribeForDispatchSources( @@ -107,7 +105,7 @@ void CAmCommonAPIWrapper::deleteInstance() } catch(...) { - logError(__PRETTY_FUNCTION__,"error while deleting CAPIWrapper instance"); + logError(__func__,"error while deleting CAPIWrapper instance"); } } @@ -246,7 +244,7 @@ void CAmCommonAPIWrapper::registerWatch(CommonAPI::Watch* watch, const CommonAPI //if everything is alright, add the watch and the handle to our map so we know this relationship if (error == !am_Error_e::E_OK || handle == 0) - logError(__PRETTY_FUNCTION__,"entering watch failed"); + logError(__func__,"entering watch failed"); mMapWatches.insert(std::make_pair(pollfd_.fd,watch)); } |