From 262bf8d46392c9ddbd1b9da0b2c897fc22ff5ab2 Mon Sep 17 00:00:00 2001 From: Kim Yunhan Date: Tue, 1 Nov 2011 02:25:14 +0000 Subject: [PATCH] From: Kim Yunhan Subject: [E-devel] Small patch with ecore_con_url. When I tested with elementary map, there is too many logs on console. It makes me difficult to distinguish normal logs that I want to debug. :'-( It's libcurl's internal log for representing progress bar like this. ----- downloaded : 343 / 363 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 downloaded : 343 / 362 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 downloaded : 343 / 361 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 downloaded : 344 / 365 downloaded : 345 / 365 downloaded : 346 / 365 downloaded : 347 / 365 ----- So, I want to remove this log. And I look around ecore_con_url's code. Then I found solution for it. SVN revision: 64596 --- legacy/ecore/AUTHORS | 1 + legacy/ecore/src/lib/ecore_con/ecore_con_url.c | 1 + 2 files changed, 2 insertions(+) diff --git a/legacy/ecore/AUTHORS b/legacy/ecore/AUTHORS index eb4cda9e4f..0ab54f12bf 100644 --- a/legacy/ecore/AUTHORS +++ b/legacy/ecore/AUTHORS @@ -44,3 +44,4 @@ Christopher 'devilhorns' Michael ChunEon Park xlopez@igalia.com Rafael Antognolli +Kim Yunhan diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_url.c b/legacy/ecore/src/lib/ecore_con/ecore_con_url.c index d94e00035d..912d87f424 100644 --- a/legacy/ecore/src/lib/ecore_con/ecore_con_url.c +++ b/legacy/ecore/src/lib/ecore_con/ecore_con_url.c @@ -355,6 +355,7 @@ ecore_con_url_free(Ecore_Con_Url *url_con) // FIXME: For an unknown reason, progress continue to arrive after destruction // this prevent any further call to the callback. curl_easy_setopt(url_con->curl_easy, CURLOPT_PROGRESSFUNCTION, NULL); + curl_easy_setopt(url_con->curl_easy, CURLOPT_NOPROGRESS, EINA_TRUE); if (url_con->active) {