summaryrefslogtreecommitdiff
path: root/src/components/connection_handler/src/connection_handler_impl.cc
diff options
context:
space:
mode:
authorArtem Nosach <ANosach@luxoft.com>2015-12-25 12:22:26 +0200
committerArtem Nosach <ANosach@luxoft.com>2015-12-25 12:22:26 +0200
commit2acf665ef87d98335cfd3af240b31fa993eb9e4a (patch)
tree7816212a2f0739ba7cbde465fe16fcbfeb925aa8 /src/components/connection_handler/src/connection_handler_impl.cc
parent5a05664618fe8cdb1e0050efd9c84872dc74e08f (diff)
parent5fe0e9dc265f85c1e443aa6df964c2389a8e1e4b (diff)
downloadsdl_core-2acf665ef87d98335cfd3af240b31fa993eb9e4a.tar.gz
Merge pull request #300 from LuxoftSDL/hotfix/Logging_by_Component
Update logging for component
Diffstat (limited to 'src/components/connection_handler/src/connection_handler_impl.cc')
-rw-r--r--src/components/connection_handler/src/connection_handler_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/connection_handler/src/connection_handler_impl.cc b/src/components/connection_handler/src/connection_handler_impl.cc
index c393795d4b..4ace49bb3a 100644
--- a/src/components/connection_handler/src/connection_handler_impl.cc
+++ b/src/components/connection_handler/src/connection_handler_impl.cc
@@ -205,6 +205,7 @@ void ConnectionHandlerImpl::OnConnectionEstablished(
}
LOG4CXX_DEBUG(logger_, "Add Connection #" << connection_id << " to the list.");
sync_primitives::AutoLock lock(connection_list_lock_);
+ // TODO(EZamakhov): APPLINK-19728 - possible memory leak
connection_list_.insert(
ConnectionList::value_type(
connection_id,
@@ -347,6 +348,7 @@ uint32_t ConnectionHandlerImpl::OnSessionStartedCallback(
const bool success = connection_handler_observer_->OnServiceStartedCallback(
connection->connection_device_handle(), session_key, service_type);
if (!success) {
+ LOG4CXX_WARN(logger_, "Service starting forbidden by connection_handler_observer");
if (protocol_handler::kRpc == service_type) {
connection->RemoveSession(new_session_id);
} else {