more init traces
authorLuc Yriarte <luc.yriarte@intel.com>
Mon, 29 Jul 2013 14:13:51 +0000 (16:13 +0200)
committerLuc Yriarte <luc.yriarte@intel.com>
Mon, 29 Jul 2013 14:13:51 +0000 (16:13 +0200)
src/MediaServer/JSMediaServer.cpp
src/MediaServer/JSMediaServerManager.cpp
src/MediaServer/MediaServer.cpp
src/MediaServer/MediaServerManager.cpp

index 8444015..e7cfc01 100644 (file)
@@ -94,6 +94,7 @@ void JSMediaServer::initialize(JSContextRef context, JSObjectRef object)
        MediaServerPrivObject* priv = static_cast<MediaServerPrivObject*>(JSObjectGetPrivate(object));
        if (!priv)
        {
+               LoggerD("Create private object");
                MediaServerPtr mediaserver(new MediaServer());
                priv = new MediaServerPrivObject(context, mediaserver);
                if(!JSObjectSetPrivate(object, static_cast<void*>(priv)))
index 5bb4f56..f98d1a9 100644 (file)
@@ -67,6 +67,7 @@ void JSMediaServerManager::initialize(JSContextRef context, JSObjectRef object)
        MediaServerManagerPrivObject* priv = static_cast<MediaServerManagerPrivObject*>(JSObjectGetPrivate(object));
        if (!priv)
        {
+               LoggerD("Create private object");
                MediaServerManagerPtr mediaservermanager(new MediaServerManager());
                priv = new MediaServerManagerPrivObject( context, mediaservermanager);
                if(!JSObjectSetPrivate(object, static_cast<void*>(priv)))
index c5d46eb..00b3029 100644 (file)
@@ -96,6 +96,7 @@ static void browseFindCallback(GObject *source_object, GAsyncResult *res,  gpoin
 MediaServer::MediaServer()
 :EventRequestReceiver<EventMediaServerPropertyChanged>(ThreadEnum::APPLICATION_THREAD)
 {
+       LoggerD("Entered MediaServer::MediaServer");
        proxy = NULL;
 }
 
@@ -110,6 +111,7 @@ void MediaServer::addEventListener(std::string property, EventMediaServerPropert
        */
 void MediaServer::setProxyPath(std::string path)
 {
+       LoggerD("Entered MediaServer::setProxyPath " << path);
        if (proxy)
                /* free upn_pdevice proxy */
                g_object_unref(proxy);
index 877b6a7..e41e9a8 100644 (file)
@@ -23,6 +23,7 @@ using namespace WrtDeviceApis::Commons;
 MediaServerManager::MediaServerManager()
 :EventRequestReceiver<EventMediaServerManagerPropertyChanged>(ThreadEnum::APPLICATION_THREAD)
 {
+       LoggerD("Entered MediaServerManager::MediaServerManager");
        proxy = NULL;
 }