Add log for image file loading failure 82/224682/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 12 Feb 2020 06:56:20 +0000 (15:56 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 12 Feb 2020 08:24:50 +0000 (17:24 +0900)
Change-Id: If5bffc5563be5aefd9c6177fb2feaf1985aaece4

dali-toolkit/internal/image-loader/image-load-thread.cpp

index 213173a..179734a 100644 (file)
@@ -22,6 +22,7 @@
 #include <dali/devel-api/adaptor-framework/image-loading.h>
 #include <dali/devel-api/adaptor-framework/thread-settings.h>
 #include <dali/integration-api/adaptor-framework/adaptor.h>
+#include <dali/integration-api/debug.h>
 
 namespace Dali
 {
@@ -76,6 +77,11 @@ void LoadingTask::Load()
   {
     pixelBuffer = Dali::DownloadImageSynchronously ( url.GetUrl(), dimensions, fittingMode, samplingMode, orientationCorrection );
   }
+
+  if( !pixelBuffer )
+  {
+    DALI_LOG_ERROR( "LoadingTask::Load: Loading is failed: %s\n", url.GetUrl().c_str() );
+  }
 }
 
 void LoadingTask::ApplyMask()