[MediaKey] Added logs in methods onEntered and onReturn
authorPiotr Kosko <p.kosko@samsung.com>
Wed, 27 May 2015 12:09:52 +0000 (14:09 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 28 May 2015 10:56:57 +0000 (19:56 +0900)
Change-Id: I5f3721bbd0c7b79e941dc4fbb190476edcfce595
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/mediakey/mediakey_instance.cc

index 8311ac562435dfe6dcbe595ff1f21a68e6a44243..0dd81cf2d01c023b18b7c46124116f56137ad856 100644 (file)
@@ -41,6 +41,9 @@ MediaKeyInstance::~MediaKeyInstance() {
 
 void MediaKeyInstance::SetMediaKeyEventListener(const picojson::value& args,
                                                 picojson::object& out) {
+
+  LoggerD("Enter");
+
   common::PlatformResult result = MediaKeyManager::GetInstance()
       .RegisterMediaKeyEventListener(this);
   if (result.IsError()) {
@@ -53,6 +56,7 @@ void MediaKeyInstance::SetMediaKeyEventListener(const picojson::value& args,
 
 void MediaKeyInstance::UnsetMediaKeyEventListener(const picojson::value& args,
                                                   picojson::object& out) {
+  LoggerD("Enter");
   common::PlatformResult result = MediaKeyManager::GetInstance()
       .UnregisterMediaKeyEventListener();
   if (result.IsError()) {