Adjust the log level to INFO() 32/192232/1
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 1 Nov 2018 05:39:06 +0000 (14:39 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 1 Nov 2018 05:39:06 +0000 (14:39 +0900)
The image loader plugin is not found by default.
so an unnecessary error log remains.

The image loader plugin can be created by dali-extension when needed.

see refer dali-extension)
commit id : f4fee8800937008cef8f33de8d252f2ced9403cb

Change-Id: I8a4b72b37f4dadfda06f16edbd5b404e7330243f

dali/internal/imaging/common/image-loader-plugin-proxy.cpp

index 4e26864..1c61731 100755 (executable)
@@ -43,6 +43,18 @@ static CreateImageLoaderPlugin* mCreatePluginFunctionPtr = NULL;
 static DestroyImageLoaderPlugin* mDestroyImageLoaderPluginPtr = NULL;
 static Dali::ImageLoaderPlugin* mImageLoaderPlugin = NULL;
 
+#if defined(DEBUG_ENABLED)
+/**
+ * Disable logging of image loader plugin proxy or make it verbose from the commandline
+ * as follows (e.g., for dali demo app):
+ * <code>
+ * LOG_IMAGE_LOADER_PLUGIN=0 dali-demo #< off
+ * LOG_IMAGE_LOADER_PLUGIN=3 dali-demo #< on, verbose
+ * </code>
+ */
+Debug::Filter* gImageLoaderPluginLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_IMAGE_LOADER_PLUGIN" );
+#endif
+
 void Initialize()
 {
   // Only attempt to load dll once
@@ -54,7 +66,7 @@ void Initialize()
     error = dlerror();
     if( !mLibHandle )
     {
-      DALI_LOG_ERROR( "Cannot load dali image loading plugin library error: %s\n", error );
+      DALI_LOG_INFO( gImageLoaderPluginLogFilter, Dali::Integration::Log::Verbose, "Cannot load dali image loading plugin library error: %s\n", error );
       return;
     }