Replace LogInfo to LogDebug
[platform/framework/web/wrt-plugins-common.git] / src / plugin-loading / plugin.cpp
index 16b92e6..27b24a5 100644 (file)
@@ -44,7 +44,7 @@ Plugin::Plugin(const std::string &fileName,
 
 Plugin::~Plugin()
 {
-    LogInfo("Unloading plugin library: " << m_fileName << "...");
+    LogDebug("Unloading plugin library: " << m_fileName << "...");
 
     // Unload library
     if (dlclose(m_libHandle) != 0) {
@@ -145,17 +145,17 @@ PluginPtr Plugin::LoadFromFile(const std::string& fileName)
 
     if (logEnable)
     {
-        LogInfo("#####");
-        LogInfo("##### Plugin: " << fileName << " supports new plugin API");
-        LogInfo("#####");
-        LogInfo("##### $onWidgetStartProc: " << onWidgetStartProcPtr);
-        LogInfo("##### $onWidgetInitProc: " << onWidgetInitProcPtr);
-        LogInfo("##### $onWidgetStopProc " << onWidgetStopProcPtr);
-        LogInfo("##### $onFrameLoadProc " << onFrameLoadProcPtr);
-        LogInfo("##### $onFrameUnloadProc " << onFrameUnloadProcPtr);
-        LogInfo("##### $classMap: " << reinterpret_cast<const void *>(rawClassList));
-        LogInfo("##### ");
-        LogInfo("##### Class map:");
+        LogDebug("#####");
+        LogDebug("##### Plugin: " << fileName << " supports new plugin API");
+        LogDebug("#####");
+        LogDebug("##### $onWidgetStartProc: " << onWidgetStartProcPtr);
+        LogDebug("##### $onWidgetInitProc: " << onWidgetInitProcPtr);
+        LogDebug("##### $onWidgetStopProc " << onWidgetStopProcPtr);
+        LogDebug("##### $onFrameLoadProc " << onFrameLoadProcPtr);
+        LogDebug("##### $onFrameUnloadProc " << onFrameUnloadProcPtr);
+        LogDebug("##### $classMap: " << reinterpret_cast<const void *>(rawClassList));
+        LogDebug("##### ");
+        LogDebug("##### Class map:");
     }
 
     const js_entity_definition_t *rawEntityListIterator = rawClassList;
@@ -168,11 +168,11 @@ PluginPtr Plugin::LoadFromFile(const std::string& fileName)
         if (logEnable)
         {
             // Logging
-            LogInfo("#####");
-            LogInfo("#####     [" << rawEntityListIterator->object_name << "]: ");
-            LogInfo("#####     Interface: " <<
+            LogDebug("#####");
+            LogDebug("#####     [" << rawEntityListIterator->object_name << "]: ");
+            LogDebug("#####     Interface: " <<
                     rawEntityListIterator->interface_name);
-            LogInfo("#####     Parent: " << rawEntityListIterator->parent_name);
+            LogDebug("#####     Parent: " << rawEntityListIterator->parent_name);
         }
 
         // Register class
@@ -208,8 +208,7 @@ void Plugin::OnWidgetStart(int widgetId)
 {
     if (NULL != m_apiOnWidgetStart) {
         (*m_apiOnWidgetStart)(widgetId);
-    } else {
-        LogWarning("OnWidgetStart not set!");
+        LogDebug("Called!");
     }
 }
 
@@ -218,8 +217,7 @@ void Plugin::OnWidgetInit(feature_mapping_interface_t* mapping)
     Assert(NULL != mapping && "NULL mapping interface provided");
     if (NULL != m_apiOnWidgetInit) {
         (*m_apiOnWidgetInit)(mapping);
-    } else {
-        LogWarning("OnWidgetInit not set!");
+        LogDebug("Called!");
     }
 }
 
@@ -227,8 +225,7 @@ void Plugin::OnWidgetStop(int widgetId)
 {
     if (NULL != m_apiOnWidgetStop) {
         (*m_apiOnWidgetStop)(widgetId);
-    } else {
-        LogWarning("OnWidgetStop not set!");
+        LogDebug("Called!");
     }
 }
 
@@ -236,8 +233,7 @@ void Plugin::OnFrameLoad(java_script_context_t context)
 {
     if (NULL != m_apiOnFrameLoad) {
         (*m_apiOnFrameLoad)(context);
-    } else {
-        LogWarning("OnFrameLoad not set!");
+        LogDebug("Called!");
     }
 }
 
@@ -245,8 +241,7 @@ void Plugin::OnFrameUnload(java_script_context_t context)
 {
     if (NULL != m_apiOnFrameUnload) {
         (*m_apiOnFrameUnload)(context);
-    } else {
-        LogWarning("OnFrameUnload not set!");
+        LogDebug("Called!");
     }
 }