From 3e39b237150bc3259c20e00737a73c6e8fb3a07e Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Thu, 1 Nov 2018 14:39:06 +0900 Subject: [PATCH] Adjust the log level to INFO() 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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dali/internal/imaging/common/image-loader-plugin-proxy.cpp b/dali/internal/imaging/common/image-loader-plugin-proxy.cpp index 4e26864..1c61731 100755 --- a/dali/internal/imaging/common/image-loader-plugin-proxy.cpp +++ b/dali/internal/imaging/common/image-loader-plugin-proxy.cpp @@ -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): + * + * LOG_IMAGE_LOADER_PLUGIN=0 dali-demo #< off + * LOG_IMAGE_LOADER_PLUGIN=3 dali-demo #< on, verbose + * + */ +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; } -- 2.7.4